Skip to content

Terminal suggest: Request to pwsh happening after running command #243054

Open
@Tyriar

Description

@Tyriar

I've seen this happen a few times (ignore the ^C):

Image

I think we're making a request and abandoning it shortly after when I type git push while git st is running. We should verify the state of the prompt at the time this request is made and see if we can avoid doing so. This is where we limit the requests:

// Return immediately if completions are being requested for a command since this provider
// only returns completions for arguments
if (value.substring(0, cursorPosition).trim().indexOf(' ') === -1) {
return Promise.resolve(undefined);
}

Metadata

Metadata

Assignees

Labels

terminal-shell-pwshAn issue in the terminal specific to PowerShell, including shell integrationterminal-suggest

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions