finalize terminal completion provider API (#271338)

This commit is contained in:
Megan Rogge
2025-10-23 11:57:05 -04:00
committed by GitHub
parent 1c2e29a3c7
commit a1b4ecaa32
18 changed files with 371 additions and 364 deletions

View File

@@ -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
};
}