diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2024-05-29 21:31:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-29 21:31:09 +0100 |
commit | 3d3722507e1964cba66161e3e2e7b538bc23f29c (patch) | |
tree | 29cf6f83f1ee97a2a9477c45d1572ba9078104f4 /cli/lsp/tsc.rs | |
parent | 3c3076a84ce84f7f9b5db5f476db8ee878eb603b (diff) |
perf(repl): don't walk workspace in repl language server (#24037)
Diffstat (limited to 'cli/lsp/tsc.rs')
-rw-r--r-- | cli/lsp/tsc.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/lsp/tsc.rs b/cli/lsp/tsc.rs index ebd3fc973..76a33a532 100644 --- a/cli/lsp/tsc.rs +++ b/cli/lsp/tsc.rs @@ -4679,7 +4679,7 @@ impl UserPreferences { // TODO(nayeemrmn): Investigate why we use `Index` here. import_module_specifier_ending: Some(ImportModuleSpecifierEnding::Index), include_completions_with_snippet_text: Some( - config.client_capabilities.snippet_support, + config.snippet_support_capable(), ), provide_refactor_not_applicable_reason: Some(true), quote_preference: Some(fmt_config.into()), @@ -4717,7 +4717,7 @@ impl UserPreferences { include_completions_with_class_member_snippets: Some( language_settings.suggest.enabled && language_settings.suggest.class_member_snippets.enabled - && config.client_capabilities.snippet_support, + && config.snippet_support_capable(), ), include_completions_with_insert_text: Some( language_settings.suggest.enabled, @@ -4728,7 +4728,7 @@ impl UserPreferences { .suggest .object_literal_method_snippets .enabled - && config.client_capabilities.snippet_support, + && config.snippet_support_capable(), ), import_module_specifier_preference: Some( language_settings.preferences.import_module_specifier, |