diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2025-06-20 18:38:28 +0200 |
|---|---|---|
| committer | DanielGavin <danielgavin5@hotmail.com> | 2025-06-20 18:38:28 +0200 |
| commit | fa626ad544a171313ac1679e0865d9d7d822c63b (patch) | |
| tree | 4d8755ee42984d69a71a26003745c9c11ce648ab /src/server/requests.odin | |
| parent | 5caff349cf9dad7c697eb49250ac4c1e75e259fb (diff) | |
Move ast.odin to server + add resolve_when_condition
Diffstat (limited to 'src/server/requests.odin')
| -rw-r--r-- | src/server/requests.odin | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/server/requests.odin b/src/server/requests.odin index 837bc9b..19a99b7 100644 --- a/src/server/requests.odin +++ b/src/server/requests.odin @@ -228,7 +228,7 @@ call_map: map[string]proc(_: json.Value, _: RequestId, _: ^common.Config, _: ^Wr "textDocument/didClose" = notification_did_close, "textDocument/didSave" = notification_did_save, "textDocument/definition" = request_definition, - "textDocument/typeDefinition" = request_type_definition, + "textDocument/typeDefinition" = request_type_definition, "textDocument/completion" = request_completion, "textDocument/signatureHelp" = request_signature_help, "textDocument/documentSymbol" = request_document_symbols, @@ -410,7 +410,11 @@ read_ols_initialize_options :: proc(config: ^common.Config, ols_config: OlsConfi } if config.profile.os == "" { - config.profile.os = os_enum_to_string[ODIN_OS] + config.profile.os = fmt.aprint(ODIN_OS) + } + + if config.profile.arch == "" { + config.profile.arch = fmt.aprint(ODIN_ARCH) } config.checker_targets = slice.clone(ols_config.checker_targets, context.allocator) |