summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2023-10-13 14:38:34 +0100
committerGitHub <noreply@github.com>2023-10-13 14:38:34 +0100
commitbd238be4b5f26126fee8820d2a64c6660dfd6b6b (patch)
tree7cc93c00590c022d4be49a9c4bec6a9cec1ffedd
parent7599990a4fe66bacdc00c12cbe3b8e800160bf68 (diff)
fix(lsp): don't commit registry completions on "/" (#20902)
-rw-r--r--cli/lsp/registries.rs2
-rw-r--r--cli/tests/integration/lsp_tests.rs2
2 files changed, 2 insertions, 2 deletions
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<regex::Regex> =
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": ["\"", "'"]
}]
})
);