diff options
| -rw-r--r-- | src/common/config.odin | 71 | ||||
| -rw-r--r-- | src/server/check.odin | 2 | ||||
| -rw-r--r-- | src/server/requests.odin | 1 |
3 files changed, 35 insertions, 39 deletions
diff --git a/src/common/config.odin b/src/common/config.odin index 30f18c9..b44623a 100644 --- a/src/common/config.odin +++ b/src/common/config.odin @@ -10,43 +10,42 @@ ConfigProfile :: struct { } Config :: struct { - workspace_folders: [dynamic]WorkspaceFolder, - completion_support_md: bool, - hover_support_md: bool, - signature_offset_support: bool, - collections: map[string]string, - running: bool, - verbose: bool, - enable_format: bool, - enable_hover: bool, - enable_document_symbols: bool, - enable_semantic_tokens: bool, - enable_unused_imports_reporting: bool, - enable_inlay_hints: bool, - enable_inlay_hints_params: bool, - enable_inlay_hints_default_params: bool, + workspace_folders: [dynamic]WorkspaceFolder, + completion_support_md: bool, + hover_support_md: bool, + signature_offset_support: bool, + collections: map[string]string, + running: bool, + verbose: bool, + enable_format: bool, + enable_hover: bool, + enable_document_symbols: bool, + enable_semantic_tokens: bool, + enable_unused_imports_reporting: bool, + enable_inlay_hints_params: bool, + enable_inlay_hints_default_params: bool, enable_inlay_hints_implicit_return: bool, - enable_procedure_context: bool, - enable_snippets: bool, - enable_references: bool, - enable_label_details: bool, - enable_std_references: bool, - enable_import_fixer: bool, - enable_fake_method: bool, - enable_procedure_snippet: bool, - enable_checker_only_saved: bool, - enable_auto_import: bool, - enable_completion_matching: bool, - enable_document_links: bool, - disable_parser_errors: bool, - thread_count: int, - file_log: bool, - odin_command: string, - odin_root_override: string, - checker_args: string, - checker_targets: []string, - client_name: string, - profile: ConfigProfile, + enable_procedure_context: bool, + enable_snippets: bool, + enable_references: bool, + enable_label_details: bool, + enable_std_references: bool, + enable_import_fixer: bool, + enable_fake_method: bool, + enable_procedure_snippet: bool, + enable_checker_only_saved: bool, + enable_auto_import: bool, + enable_completion_matching: bool, + enable_document_links: bool, + disable_parser_errors: bool, + thread_count: int, + file_log: bool, + odin_command: string, + odin_root_override: string, + checker_args: string, + checker_targets: []string, + client_name: string, + profile: ConfigProfile, } config: Config diff --git a/src/server/check.odin b/src/server/check.odin index 5b8f2a1..b53d7e2 100644 --- a/src/server/check.odin +++ b/src/server/check.odin @@ -70,8 +70,6 @@ check_unused_imports :: proc(document: ^Document, config: ^common.Config) { return } - diagnostics := make([dynamic]Diagnostic, context.temp_allocator) - unused_imports := find_unused_imports(document, context.temp_allocator) remove_diagnostics(.Unused, document.uri.uri) diff --git a/src/server/requests.odin b/src/server/requests.odin index 89fd347..c84bd65 100644 --- a/src/server/requests.odin +++ b/src/server/requests.odin @@ -590,7 +590,6 @@ request_initialize :: proc( initialize_params: RequestInitializeParams if err := unmarshal(params, initialize_params, context.temp_allocator); err != nil { - log.error("Here?", err, params) return .ParseError } |