Skip to content

Terminal suggest: Widget often appears after executing a command #240656

@Tyriar

Description

@Tyriar

Repro is to just type a git subcommand quickly (initial wait is the addon loading):

Image

Maybe related to the cancelation token not be canceled here from a recent change:

hideSuggestWidget(): void {
this._currentPromptInputState = undefined;
this._leadingLineContent = undefined;
this._suggestWidget?.hide();
}

We likely need to listen for PromptInputModel.onDidFinishInput and cancel at that point instead.

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugimportantIssue identified as high-priorityinsiders-releasedPatch has been released in VS Code Insidersterminal-suggestverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions