Repository navigation
Take vscode-languageclient 12.0.0 in the VS Code extension, and drop the client's stop() patch - #830
Merged
Merged
Conversation
…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
approved these changes
Nov 30, 2026
cpurdy
left a comment
Collaborator
There was a problem hiding this comment.
Nice. I like when we can remove complexity :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
package-lock.json.makeRe(), which minimatch 11 removed (Release with minimatch 11 to fix GHSA-g3hv-75wg-m249 microsoft/vscode-languageserver-node#1938).matcher.set.How
vscode-languageclient^12.0.0, with the lockfile regenerated.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).Validation
npm auditfinds 0 vulnerabilities; minimatch is 11.0.9 in the tree.npm run compile,lintandbundlepass.**/*.x, and**for folders) are valid globs to minimatch 11.stop()removal was validated onlagergren/errswith client 11: the playbook's start-failure scenario passes without the patch, and fails without it on 10.1.2.