1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-07 06:46:59 -05:00

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 Bartek Iwańczuk
parent 7cdd3c7c26
commit 6cb5f162c8
No known key found for this signature in database
GPG key ID: 0C6BCDDC3B3AD750

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