Skip to content

Commit

Permalink
Display final options
Browse files Browse the repository at this point in the history
  • Loading branch information
azzamh15 committed Apr 12, 2024
1 parent 922e984 commit dcb6f9e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion fortls/langserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def __init__(self, conn, settings: dict):
if k.startswith("debug_") and k != "debug_log":
continue
setattr(self, k, v)

self.arguments_list = list(settings.keys())
self.sync_type: int = 2 if self.incremental_sync else 1
self.post_messages = []
self.FORTRAN_SRC_EXT_REGEX: Pattern[str] = create_src_file_exts_str(
Expand Down Expand Up @@ -234,6 +234,15 @@ def serve_initialize(self, request: dict):
server_capabilities["codeActionProvider"] = True
if self.notify_init:
self.post_message("fortls initialization complete", Severity.info)

# Log final options
final_options = {}
for param in self.arguments_list:
if param.startswith("debug_") and param != "debug_log":
continue
final_options[param] = getattr(self, param)
log.debug("Final options: %s", final_options)

return {"capabilities": server_capabilities}

def serve_workspace_symbol(self, request):
Expand Down

0 comments on commit dcb6f9e

Please sign in to comment.