Skip to content

Commit

Permalink
fix(lsp): don't commit registry completions on "/" (denoland#20902)
Browse files Browse the repository at this point in the history
  • Loading branch information
nayeemrmn committed Oct 13, 2023
1 parent 7599990 commit bd238be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/lsp/registries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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+)\}?\}");
Expand Down
2 changes: 1 addition & 1 deletion cli/tests/integration/lsp_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7405,7 +7405,7 @@ fn lsp_completions_registry_empty() {
},
"newText": "http:https://localhost:4545"
},
"commitCharacters": ["\"", "'", "/"]
"commitCharacters": ["\"", "'"]
}]
})
);
Expand Down

0 comments on commit bd238be

Please sign in to comment.