mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
fix(lsp): less agressive completion triggers (#17225)
Closes https://github.com/denoland/deno/issues/17056 Closes https://github.com/denoland/deno/issues/17055
This commit is contained in:
parent
218d7ab778
commit
98bbf87742
2 changed files with 5 additions and 13 deletions
|
@ -2007,6 +2007,10 @@ impl CompletionEntryDetails {
|
||||||
documentation,
|
documentation,
|
||||||
command,
|
command,
|
||||||
additional_text_edits,
|
additional_text_edits,
|
||||||
|
// NOTE(bartlomieju): it's not entirely clear to me why we need to do that,
|
||||||
|
// but when `completionItem/resolve` is called, we get a list of commit chars
|
||||||
|
// even though we might have returned an empty list in `completion` request.
|
||||||
|
commit_characters: None,
|
||||||
..original_item.clone()
|
..original_item.clone()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -3958,12 +3958,6 @@ export class DuckConfig {
|
||||||
},
|
},
|
||||||
"newText": "import { foo } from \"./b.ts\";\n\n"
|
"newText": "import { foo } from \"./b.ts\";\n\n"
|
||||||
}
|
}
|
||||||
],
|
|
||||||
"commitCharacters": [
|
|
||||||
".",
|
|
||||||
",",
|
|
||||||
";",
|
|
||||||
"("
|
|
||||||
]
|
]
|
||||||
}))
|
}))
|
||||||
);
|
);
|
||||||
|
@ -4077,13 +4071,7 @@ export class DuckConfig {
|
||||||
"sortText": "11",
|
"sortText": "11",
|
||||||
"filterText": "type=\"$1\"",
|
"filterText": "type=\"$1\"",
|
||||||
"insertText": "type=\"$1\"",
|
"insertText": "type=\"$1\"",
|
||||||
"insertTextFormat": 2,
|
"insertTextFormat": 2
|
||||||
"commitCharacters": [
|
|
||||||
".",
|
|
||||||
",",
|
|
||||||
";",
|
|
||||||
"("
|
|
||||||
]
|
|
||||||
}))
|
}))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue