Skip to content

Take vscode-languageclient 12.0.0 in the VS Code extension, and drop the client's stop() patch - #830

Merged
lagergren merged 1 commit into
masterfrom
lagergren/vscode-languageclient-12
Nov 30, 2026
Merged

lagergren merged 1 commit into
masterfrom
lagergren/vscode-languageclient-12

Conversation

@lagergren

Copy link
Copy Markdown
Contributor

Why

How

  • The dependency is now vscode-languageclient ^12.0.0, with the lockfile regenerated.
  • The client's stop() patch is gone. It swallowed the rejections of the stop that the client starts itself when initialization fails, and client 11.0.0 already handles those (Preserve the startup promise when initialization loses its connection microsoft/vscode-languageserver-node#1867 and #1896).
  • The startup-crash rule stays. The handler still doesn't restart a server that crashed before it ever ran, since a restart would only crash again. Its comment now says so, instead of naming the old rejections.

Validation

  • npm audit finds 0 vulnerabilities; minimatch is 11.0.9 in the tree.
  • npm run compile, lint and bundle pass.
  • The server's file-operation filters (**/*.x, and ** for folders) are valid globs to minimatch 11.
  • The same stop() removal was validated on lagergren/errs with client 11: the playbook's start-failure scenario passes without the patch, and fails without it on 10.1.2.
  • CI runs the extension's headless tests for this change.

…the client's stop() patch

vscode-languageclient 12.0.0 (2026-11-27) depends on minimatch ^11.0.9 and checks a glob's
validity through matcher.set instead of makeRe(), which minimatch 11 removed. Client 11.0.1
depended on minimatch ^10.2.6, which GHSA-g3hv-75wg-m249 affects (medium: denial of service
through globparts amplification), and no override to minimatch 11 was possible while the client
called makeRe(). That is microsoft/vscode-languageserver-node#1938, and Dependabot alert #85 on
the extension's package-lock.json. 12.0.0's other changes are two vscode-jsonrpc fixes (an
idempotent cancellation, and a semaphore that waits for thenables before it releases a slot).
It changes no API, and it still asks for VS Code 1.91 or later.

The extension also drops its patch of the client's stop(), which swallowed the rejections of the
stop that the client starts itself when initialization fails. Client 11.0.0 already handles
those: microsoft/vscode-languageserver-node#1867 and #1896. The handler that doesn't restart a
server that crashed before it ever ran stays, since a restart would only crash again; its comment
now says so instead of naming the client's old rejections.

Validation:
- npm audit: 0 vulnerabilities (minimatch 11.0.9 in the tree); before, the minimatch advisory.
- npm run compile, lint and bundle pass.
- The server's file operation filters, **/*.x and ** for folders, are valid globs to minimatch 11.
- The same removal of the stop() patch was validated on lagergren/errs with client 11.0.0: its
  playbook's start-failure scenario passes without the patch, and fails without it on client
  10.1.2. CI runs this extension's headless tests for this change.

@cpurdy cpurdy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice. I like when we can remove complexity :)

@lagergren
lagergren merged commit 6080ab6 into master Nov 30, 2026
5 checks passed
@lagergren
lagergren deleted the lagergren/vscode-languageclient-12 branch November 30, 2026 13:42
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.

2 participants