pass in prefix vs value to completion extension providers so command line excludes ghost text (#236000)
fixes #235996pull/236083/head
parent
e7b43262d2
commit
2468418bd9
|
@ -156,7 +156,7 @@ export class SuggestAddon extends Disposable implements ITerminalAddon, ISuggest
|
|||
await this._extensionService.activateByEvent('onTerminalCompletionsRequested');
|
||||
}
|
||||
|
||||
const providedCompletions = await this._terminalCompletionService.provideCompletions(this._promptInputModel.value, this._promptInputModel.cursorIndex, this._shellType, token, triggerCharacter, doNotRequestExtensionCompletions);
|
||||
const providedCompletions = await this._terminalCompletionService.provideCompletions(this._promptInputModel.prefix, this._promptInputModel.cursorIndex, this._shellType, token, triggerCharacter, doNotRequestExtensionCompletions);
|
||||
if (!providedCompletions?.length || token.isCancellationRequested) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue