Skip to content

fix: trim unix socket path from createRandomIPCHandle#319895

Merged
deepak1556 merged 1 commit into
mainfrom
robo/trim_long_unix_socket_paths
Jun 4, 2026
Merged

fix: trim unix socket path from createRandomIPCHandle#319895
deepak1556 merged 1 commit into
mainfrom
robo/trim_long_unix_socket_paths

Conversation

@deepak1556
Copy link
Copy Markdown
Collaborator

No description provided.

@deepak1556 deepak1556 added this to the 1.124.0 milestone Jun 4, 2026
@deepak1556 deepak1556 self-assigned this Jun 4, 2026
Copilot AI review requested due to automatic review settings June 4, 2026 11:24
@deepak1556 deepak1556 enabled auto-merge (squash) June 4, 2026 11:24
Copy link
Copy Markdown
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

This change updates VS Code’s Node IPC socket handle generation to better respect Unix domain socket path length limits, addressing Node.js 24’s stricter EINVAL behavior when paths exceed platform limits.

Changes:

  • Trim the random IPC socket suffix to fit within per-platform Unix socket path limits.
  • Clarify why createStaticIPCHandle still validates (and can still exceed) length, since it must remain deterministic.

Comment thread src/vs/base/parts/ipc/node/ipc.net.ts
@deepak1556 deepak1556 merged commit fcd72a8 into main Jun 4, 2026
40 of 41 checks passed
@deepak1556 deepak1556 deleted the robo/trim_long_unix_socket_paths branch June 4, 2026 13:12
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