Skip to content

Switch to onDidStartTerminalShellExecution from the obsolete proposed API terminalData* events #13605

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

fearthecowboy
Copy link
Contributor

Fixes #12575

This stops the use of the proposed deprecated API and uses the newer, released TerminalShellExecution support.

@fearthecowboy fearthecowboy requested a review from a team as a code owner May 13, 2025 16:19
@github-project-automation github-project-automation bot moved this to Pull Request in cpptools May 13, 2025
Copy link
Member

@bobbrow bobbrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I'll let someone else on the team approve though.

Copy link
Contributor

@sean-mcmanus sean-mcmanus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does anyone know how to test this?

if (e.terminal !== terminal) {
return;
}

terminalDataHandlingQueue = terminalDataHandlingQueue.finally(() => void handleTerminalOutput(e));
for await (const data of e.execution.read()) {
void handleTerminalOutput(data);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be void handleTerminalOutput(data).catch(logAndReturn.undefined);?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Pull Request
Development

Successfully merging this pull request may close these issues.

Migrate from proposed API terminalDataWriteEvent to new terminalShellIntegration
3 participants