Improve class member snippet completions and keyword completions interaction (#52525)

This commit is contained in:
Gabriela Araujo Britto
2023-05-17 19:14:34 -03:00
committed by GitHub
parent b14264a2eb
commit 24ac9e75c2
38 changed files with 780 additions and 522 deletions

View File

@@ -2335,6 +2335,11 @@ export interface CompletionEntry {
* coupled with `replacementSpan` to replace a dotted access with a bracket access.
*/
insertText?: string;
/**
* A string that should be used when filtering a set of
* completion items.
*/
filterText?: string;
/**
* `insertText` should be interpreted as a snippet if true.
*/

View File

@@ -2267,6 +2267,7 @@ export class Session<TMessage = string> implements EventSender {
kindModifiers,
sortText,
insertText,
filterText,
replacementSpan,
hasAction,
source,
@@ -2285,6 +2286,7 @@ export class Session<TMessage = string> implements EventSender {
kindModifiers,
sortText,
insertText,
filterText,
replacementSpan: convertedSpan,
isSnippet,
hasAction: hasAction || undefined,