Skip to content

Conversation

@anthonykim1
Copy link
Contributor

@anthonykim1 anthonykim1 commented Oct 24, 2025

@anthonykim1 anthonykim1 added this to the October 2025 milestone Oct 24, 2025
@anthonykim1 anthonykim1 self-assigned this Oct 24, 2025
@anthonykim1 anthonykim1 added important Issue identified as high-priority bug Issue identified by VS Code Team member as probable bug labels Oct 24, 2025
"enabledApiProposals": [
"terminalShellEnv"
"terminalShellEnv",
"terminalDataWriteEvent"
Copy link
Member

Choose a reason for hiding this comment

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

This will need an engine version update if the proposed API is not in stable, and a distro change.

Copy link
Contributor Author

@anthonykim1 anthonykim1 Oct 24, 2025

Choose a reason for hiding this comment

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

I believe terminalDataWriteEventis pretty old proposed api.

Also updated the distro for env extension to enable this, and updated vscode repo with the new hash: microsoft/vscode#273148.

I'd want to pin vscode version to one from this morning to make sure we have microsoft/vscode#272369 in though --> done see commit below

Copy link
Member

Choose a reason for hiding this comment

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

Yep it's old

@anthonykim1 anthonykim1 marked this pull request as ready for review October 24, 2025 19:06
@anthonykim1 anthonykim1 marked this pull request as draft October 24, 2025 20:03
@anthonykim1 anthonykim1 marked this pull request as ready for review October 24, 2025 20:53
@anthonykim1 anthonykim1 requested a review from Tyriar October 24, 2025 20:53

const config = getConfiguration('terminal.integrated');
const timeoutValue = config.get<number | undefined>('shellIntegration.timeout');
const timeoutMs = timeoutValue === undefined || -1 ? 5000 : timeoutValue;
Copy link
Member

Choose a reason for hiding this comment

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

You can make it more consistent with getShellIntegrationTimeout by checking terminal.integrated.shellIntegration.enabled (mostly will match siInjectionEnabled) and the window's remoteAuthority for isRemote.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good,, I think the remoteAuthority is from proposed api though: https://github.com/microsoft/vscode/blob/c23478af52b09c278e21e8396a0e120eb134ae3a/src/vscode-dts/vscode.proposed.resolvers.d.ts#L472

Would env.remoteName be good enough? 28f5261

// Condition 3: Detect prompt patterns in terminal output
new Promise<boolean>((resolve) => {
let dataSoFar = '';
const debounced = createSimpleDebounce(50, () => {
Copy link
Member

Choose a reason for hiding this comment

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

This should be disposable, created #954

@anthonykim1 anthonykim1 marked this pull request as draft October 25, 2025 16:25
@anthonykim1 anthonykim1 marked this pull request as ready for review October 25, 2025 17:47
@anthonykim1 anthonykim1 requested a review from Tyriar October 25, 2025 17:47
@anthonykim1 anthonykim1 marked this pull request as draft October 26, 2025 00:53
@anthonykim1 anthonykim1 marked this pull request as ready for review October 26, 2025 00:55
@anthonykim1 anthonykim1 merged commit 7d52871 into main Oct 26, 2025
11 checks passed
@anthonykim1 anthonykim1 deleted the anthonykim1/properShellIntegrationWait branch October 26, 2025 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Issue identified by VS Code Team member as probable bug important Issue identified as high-priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python Env activation commands fail to run in Pwsh on Mac

5 participants