fix: unexpected lsp function arg comma completion (#20311)

This commit is contained in:
Marvin Hagemeister 2023-08-28 17:07:22 +02:00 committed by GitHub
parent ebfead1021
commit 539e5032d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(),
]),