You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Upgrade vscode-languageclient/-server and decide the minimum supported VS Code version #24
The tooling PRs (#25, #26, #27) upgrade the low-risk dependencies. These remaining upgrades need a decision on the minimum supported VS Code version first, so they're tracked here.
Language client and server
vscode-languageclient and vscode-languageserver are on 7.0.0 (December 2020). The latest versions are 12.0.0 and 11.0.2. They span several major versions with API changes, and the client and server should move together.
vscode-languageclient
Minimum VS Code (engines.vscode)
LSP protocol
7.0.0 (current)
^1.52.0
3.16
9.0.1 (with vscode-languageserver 9.0.1)
^1.82.0
3.17
10.x – 12.0.0
^1.91.0
3.18
(8.x, which needs ^1.67.0, is skipped here: 9.x works with the same VS Code versions we support.)
Two options:
Upgrade to 9.x. It fits the current engines.vscode: ^1.83.0, so every editor that runs the extension today keeps working.
Upgrade to 12.x. This requires raising engines.vscode to at least ^1.91.0. Editors based on older VS Code versions would stop receiving updates of the extension. That includes forks: check which VS Code version Cursor and other forks we care about are based on.
Either way, the migration needs to be tested in a real extension host (completions, hovers, signature help, diagnostics, import resolution), which the current test setup doesn't cover. #20 adds unit tests.
@types/vscode
#27 pins @types/vscode to ~1.83 to match engines.vscode: ^1.83.0. Before, the specifier ^1.83.0 passed vsce's check against engines.vscode, but the lockfile resolved it to 1.96. If the minimum is raised, raise @types/vscode with it, so the type checker keeps rejecting APIs the oldest supported editors don't have.
@types/node
@types/node (18.x) should match the Node version in the extension host of the minimum supported VS Code. VS Code 1.83 runs Node 18 (VS Code moved to Node 20 in 1.90), so 18.x is correct for the current minimum. If engines.vscode goes to 1.91 or newer, move to @types/node 20.x.
Checklist
Decide the minimum supported VS Code version (keep ^1.83.0, or raise to ^1.91.0 or newer)
If the minimum changes, move @types/vscode with it
Upgrade vscode-languageclient and vscode-languageserver (to 9.x or 12.x / 11.x, depending on the above)
Align @types/node with the extension host's Node version
Test the extension end-to-end in VS Code (and in Cursor, if supported)
Activity