Skip to content

Don't use polling to check for shell integration #1089

@anthonykim1

Description

@anthonykim1

/**
* Three conditions in a Promise.race:
* 1. Timeout based on VS Code's terminal.integrated.shellIntegration.timeout setting
* 2. Shell integration becoming available (window.onDidChangeTerminalShellIntegration event)
* 3. Detection of common prompt patterns in terminal output
*/
export async function waitForShellIntegration(terminal: Terminal): Promise<boolean> {
is much better.

Metadata

Metadata

Assignees

Labels

area-activationIssue related to activation. Root cause can be from interpreter selection or activation in terminalarea-terminalEnvironment extension specific terminal issues.debt

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions