From bd238be4b5f26126fee8820d2a64c6660dfd6b6b Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Fri, 13 Oct 2023 14:38:34 +0100 Subject: fix(lsp): don't commit registry completions on "/" (#20902) --- cli/lsp/registries.rs | 2 +- cli/tests/integration/lsp_tests.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'cli') diff --git a/cli/lsp/registries.rs b/cli/lsp/registries.rs index ea33219e8..b5a645e72 100644 --- a/cli/lsp/registries.rs +++ b/cli/lsp/registries.rs @@ -64,7 +64,7 @@ const COMPONENT: &percent_encoding::AsciiSet = &percent_encoding::CONTROLS .add(b'+') .add(b','); -const REGISTRY_IMPORT_COMMIT_CHARS: &[&str] = &["\"", "'", "/"]; +const REGISTRY_IMPORT_COMMIT_CHARS: &[&str] = &["\"", "'"]; static REPLACEMENT_VARIABLE_RE: Lazy = lazy_regex::lazy_regex!(r"\$\{\{?(\w+)\}?\}"); diff --git a/cli/tests/integration/lsp_tests.rs b/cli/tests/integration/lsp_tests.rs index b5af78b11..5f76d3de2 100644 --- a/cli/tests/integration/lsp_tests.rs +++ b/cli/tests/integration/lsp_tests.rs @@ -7405,7 +7405,7 @@ fn lsp_completions_registry_empty() { }, "newText": "http://localhost:4545" }, - "commitCharacters": ["\"", "'", "/"] + "commitCharacters": ["\"", "'"] }] }) ); -- cgit v1.2.3