diff options
author | Marvin Hagemeister <marvin@deno.com> | 2023-08-28 17:07:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-28 17:07:22 +0200 |
commit | 539e5032d372679869dcee4e2e63f2116288b435 (patch) | |
tree | 03d850a2b558441f04c709bdefaf43c47125ee28 | |
parent | ebfead10211ad406a4f398e5fe22cca67fcf69a5 (diff) |
fix: unexpected lsp function arg comma completion (#20311)
-rw-r--r-- | cli/lsp/capabilities.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/lsp/capabilities.rs b/cli/lsp/capabilities.rs index 355f7b6c5..e814daf0b 100644 --- a/cli/lsp/capabilities.rs +++ b/cli/lsp/capabilities.rs @@ -53,9 +53,10 @@ pub fn server_capabilities( )), hover_provider: Some(HoverProviderCapability::Simple(true)), completion_provider: Some(CompletionOptions { + // Don't include "," here as it leads to confusing completion + // behavior with function arguments. See https://github.com/denoland/deno/issues/20160 all_commit_characters: Some(vec![ ".".to_string(), - ",".to_string(), ";".to_string(), "(".to_string(), ]), |