Skip to content

Update conpty to 1.25#301398

Merged
anthonykim1 merged 4 commits intomainfrom
anthonykim1/conpty1.25
Mar 17, 2026
Merged

Update conpty to 1.25#301398
anthonykim1 merged 4 commits intomainfrom
anthonykim1/conpty1.25

Conversation

@anthonykim1
Copy link
Contributor

@anthonykim1 anthonykim1 commented Mar 13, 2026

@anthonykim1 anthonykim1 self-assigned this Mar 13, 2026
Copilot AI review requested due to automatic review settings March 13, 2026 05:35
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates terminal-related dependency/documentation to align with the latest bundled PTY/conpty components.

Changes:

  • Bumps node-pty from ^1.2.0-beta.10 to ^1.2.0-beta.12 in both the main and remote (REH) packages, including lockfiles.
  • Updates the terminal.integrated.windowsUseConptyDll setting description to reference the newer bundled conpty.dll version.

Reviewed changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/vs/workbench/contrib/terminal/common/terminalConfiguration.ts Updates the user-facing setting description for the bundled conpty.dll version.
package.json Bumps node-pty dependency version used by the main product build.
package-lock.json Updates lockfile entries for node-pty@1.2.0-beta.12.
remote/package.json Bumps node-pty dependency version used by the remote server/REH package.
remote/package-lock.json Updates remote lockfile entries for node-pty@1.2.0-beta.12.
Files not reviewed (1)
  • remote/package-lock.json: Language not supported

this._queueProcessExit();
}));
this._sendProcessId(ptyProcess.pid);
// node-pty >= 1.2.0-beta.11 defers conptyNative.connect() on Windows, so
Copy link
Contributor Author

Choose a reason for hiding this comment

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

was getting test failure so trying to see if these would fix it.
I dont like how we are making pid as non-readonly though :/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image

Copy link
Contributor Author

@anthonykim1 anthonykim1 Mar 14, 2026

Choose a reason for hiding this comment

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

@Tyriar With microsoft/node-pty#885 (node-pty beta 11 which hasnt been in VS Code yet),
node-pty defers conptyNative.connect() . So instead of connecting immediately and having valid pid, we just get zero until worker is ready and connection is complete?

The thing is... that lead to test failing since

this._sendProcessId(ptyProcess.pid);

Do you think 27f4805 is the right way to go about this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@deepak1556 Wondering your thoughts here as well! Thanks

@anthonykim1 anthonykim1 added this to the 1.113.0 milestone Mar 13, 2026
@anthonykim1 anthonykim1 marked this pull request as ready for review March 15, 2026 17:22
@vs-code-engineering
Copy link
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@Tyriar

Matched files:

  • src/vs/platform/terminal/node/childProcessMonitor.ts
  • src/vs/platform/terminal/node/terminalProcess.ts

@anthonykim1 anthonykim1 merged commit 262ba6d into main Mar 17, 2026
75 checks passed
@anthonykim1 anthonykim1 deleted the anthonykim1/conpty1.25 branch March 17, 2026 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants