Skip to content

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