Skip to content

Commit dcb6f9e

Browse files
committed
Display final options
1 parent 922e984 commit dcb6f9e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

fortls/langserver.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def __init__(self, conn, settings: dict):
8686
if k.startswith("debug_") and k != "debug_log":
8787
continue
8888
setattr(self, k, v)
89-
89+
self.arguments_list = list(settings.keys())
9090
self.sync_type: int = 2 if self.incremental_sync else 1
9191
self.post_messages = []
9292
self.FORTRAN_SRC_EXT_REGEX: Pattern[str] = create_src_file_exts_str(
@@ -234,6 +234,15 @@ def serve_initialize(self, request: dict):
234234
server_capabilities["codeActionProvider"] = True
235235
if self.notify_init:
236236
self.post_message("fortls initialization complete", Severity.info)
237+
238+
# Log final options
239+
final_options = {}
240+
for param in self.arguments_list:
241+
if param.startswith("debug_") and param != "debug_log":
242+
continue
243+
final_options[param] = getattr(self, param)
244+
log.debug("Final options: %s", final_options)
245+
237246
return {"capabilities": server_capabilities}
238247

239248
def serve_workspace_symbol(self, request):

0 commit comments

Comments
 (0)