diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-23 19:29:40 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-24 08:55:24 -0400 |
| commit | 9ccd1aa0c7f2ac0d8982750a9ac5c9d5c1e1ea34 (patch) | |
| tree | 8d5c65e5ee7ac3cf098fbed83c66f916d12d1197 /src/server/requests.odin | |
| parent | 118db4f7667c91b24fcc21353df7c3cd7a5830b3 (diff) | |
Add configuration for enabling pointer matching on completion
Diffstat (limited to 'src/server/requests.odin')
| -rw-r--r-- | src/server/requests.odin | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server/requests.odin b/src/server/requests.odin index 0572a33..c564a31 100644 --- a/src/server/requests.odin +++ b/src/server/requests.odin @@ -365,6 +365,8 @@ read_ols_initialize_options :: proc(config: ^common.Config, ols_config: OlsConfi ols_config.enable_procedure_context.(bool) or_else config.enable_procedure_context config.enable_snippets = ols_config.enable_snippets.(bool) or_else config.enable_snippets config.enable_references = ols_config.enable_references.(bool) or_else config.enable_references + config.enable_completion_matching = + ols_config.enable_completion_matching.(bool) or_else config.enable_completion_matching config.verbose = ols_config.verbose.(bool) or_else config.verbose config.file_log = ols_config.file_log.(bool) or_else config.file_log @@ -612,6 +614,7 @@ request_initialize :: proc( config.enable_procedure_context = false config.enable_snippets = false config.enable_references = true + config.enable_completion_matching = true config.verbose = false config.file_log = false config.odin_command = "" @@ -901,7 +904,7 @@ request_completion :: proc( } list: CompletionList - list, ok = get_completion_list(document, completition_params.position, completition_params.context_) + list, ok = get_completion_list(document, completition_params.position, completition_params.context_, config) if !ok { return .InternalError |