mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
finalize terminal completion provider API (#271338)
This commit is contained in:
@@ -13,8 +13,7 @@ export function createCompletionItem(cursorPosition: number, currentCommandStrin
|
||||
label: commandResource.label,
|
||||
detail: detail ?? commandResource.detail ?? '',
|
||||
documentation,
|
||||
replacementIndex: cursorPosition - lastWord.length,
|
||||
replacementLength: lastWord.length,
|
||||
replacementRange: [cursorPosition - lastWord.length, cursorPosition],
|
||||
kind: kind ?? commandResource.kind ?? vscode.TerminalCompletionItemKind.Method
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user