mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
refactor(lsp): refactor completions and add tests (#9789)
This commit is contained in:
parent
2ff9b01551
commit
506b321d47
9 changed files with 800 additions and 148 deletions
|
@ -55,7 +55,12 @@ pub fn server_capabilities(
|
|||
)),
|
||||
hover_provider: Some(HoverProviderCapability::Simple(true)),
|
||||
completion_provider: Some(CompletionOptions {
|
||||
all_commit_characters: None,
|
||||
all_commit_characters: Some(vec![
|
||||
".".to_string(),
|
||||
",".to_string(),
|
||||
";".to_string(),
|
||||
"(".to_string(),
|
||||
]),
|
||||
trigger_characters: Some(vec![
|
||||
".".to_string(),
|
||||
"\"".to_string(),
|
||||
|
@ -66,7 +71,7 @@ pub fn server_capabilities(
|
|||
"<".to_string(),
|
||||
"#".to_string(),
|
||||
]),
|
||||
resolve_provider: None,
|
||||
resolve_provider: Some(true),
|
||||
work_done_progress_options: WorkDoneProgressOptions {
|
||||
work_done_progress: None,
|
||||
},
|
||||
|
@ -77,7 +82,7 @@ pub fn server_capabilities(
|
|||
"(".to_string(),
|
||||
"<".to_string(),
|
||||
]),
|
||||
retrigger_characters: None,
|
||||
retrigger_characters: Some(vec![")".to_string()]),
|
||||
work_done_progress_options: WorkDoneProgressOptions {
|
||||
work_done_progress: None,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue