fix(vscode): align @types/vscode with engines.vscode so vsce can package#424
Conversation
`vsce package` failed: ERROR @types/vscode ^1.120.0 greater than engines.vscode ^1.85.0. Either upgrade engines.vscode or use an older @types/vscode version vsce requires the declared @types/vscode range minimum to be <= engines.vscode. Lower @types/vscode to ^1.85.0 to match the engine floor — the extension uses no API newer than 1.85 (SecretStorage, webviews, commands all predate it), so this keeps it installable on VS Code 1.85+ rather than narrowing the floor to 1.120. Build is unaffected (tsc still resolves the installed 1.x typings). Also sets the marketplace publisher to `forinda82`. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
📝 WalkthroughWalkthroughThe VS Code extension manifest ( ChangesVS Code Extension Manifest Updates
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@packages/vscode-extension/package.json`:
- Line 362: The pnpm-lock.yaml file is out of sync with the updated
`@types/vscode` specifier in package.json. Run pnpm install to regenerate the lock
file so it reflects the current package.json dependencies. Note that this will
likely resolve `@types/vscode` to version 1.120.0 (the latest within the ^1.85.0
range); if the intent is to pin to a version closer to 1.85.0 that better
matches the engines.vscode requirement, consider updating the version specifier
in package.json to use a more restrictive range like ~1.85.0 or an explicit
version like 1.85.0 before running pnpm install.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: e3ef9e38-3831-426c-8f9e-070cec7cf939
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (1)
packages/vscode-extension/package.json
| }, | ||
| "devDependencies": { | ||
| "@types/vscode": "^1.120.0", | ||
| "@types/vscode": "^1.85.0", |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Description: Check if pnpm-lock.yaml has the correct `@types/vscode` resolution after pnpm install
# Search for the `@types/vscode` resolution in the lock file
rg -A 2 "`@types/vscode`" pnpm-lock.yamlRepository: forinda/kick-js
Length of output: 360
🏁 Script executed:
# Check current package.json to see the `@types/vscode` specifier
cat -n packages/vscode-extension/package.json | sed -n '355,370p'Repository: forinda/kick-js
Length of output: 573
🏁 Script executed:
# Check if there are any related issues or comments about vsce package error
rg -i "vsce|package.*error" packages/vscode-extension/ --type json --type ts --type md -B 2 -A 2Repository: forinda/kick-js
Length of output: 403
🏁 Script executed:
# Check what npm registry shows for `@types/vscode` versions near 1.85.0
web_search "`@types/vscode` npm package versions 1.85 1.120"Repository: forinda/kick-js
Length of output: 110
🏁 Script executed:
# Check what `@types/vscode` versions are available and their relationship to vscode versions
cd packages/vscode-extension && pnpm list `@types/vscode` 2>&1 || echo "pnpm list failed, checking lock file details"Repository: forinda/kick-js
Length of output: 145
🏁 Script executed:
# Look for any comments or issues in the codebase about the vsce package error mentioned
rg -i "vsce|1\.120|1\.85" packages/vscode-extension/ -B 3 -A 3Repository: forinda/kick-js
Length of output: 1183
🌐 Web query:
@types/vscode version 1.85.0 1.120.0 npm release dates changelog
💡 Result:
The npm package @types/vscode provides TypeScript definitions for the Visual Studio Code API [1][2]. As of June 16, 2026, the release dates for the requested versions are: @types/vscode version 1.85.0: Published in December 2023. This release corresponds with the VS Code November 2023 release (v1.85) [3][4]. @types/vscode version 1.120.0: Published on May 13, 2026 [2][5][6]. The @types/vscode package does not maintain a traditional human-readable changelog file within the npm package itself [1][2]. Instead, the package serves as the TypeScript definition file (vscode.d.ts) for the VS Code API, and updates to these types are typically synchronized with the corresponding VS Code editor release [7]. Changes can be tracked via the DefinitelyTyped repository on GitHub, where updates are submitted as pull requests [6]. For specific API changes, developers should refer to the official Visual Studio Code release notes for the corresponding version [3][4].
Citations:
- 1: https://registry.npmjs.org/%40types%2Fvscode
- 2: https://registry.npmjs.org/@types/vscode
- 3: https://github.com/microsoft/vscode/releases/tag/1.85.0
- 4: https://code.visualstudio.com/updates/v1_85
- 5: https://www.npmjs.com/package/@types/vscode?activeTab=versions
- 6: chore: update @types/vscode for 1.120 DefinitelyTyped/DefinitelyTyped#74995
- 7: https://github.com/microsoft/vscode/wiki/Publish-vscode-types
Regenerate pnpm-lock.yaml with the updated package.json specifier.
The lock file still shows version: 1.120.0 for @types/vscode even though package.json now specifies ^1.85.0. Run pnpm install to regenerate the lock file and ensure consistency.
However, note that pnpm install will likely resolve @types/vscode to 1.120.0 (the latest version within the ^1.85.0 range), not an earlier version. If the intent was to pin to a specific earlier version that better matches the engines.vscode: ^1.85.0 requirement, update the specifier to target that version explicitly (e.g., ~1.85.0 or a specific version like 1.85.0).
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@packages/vscode-extension/package.json` at line 362, The pnpm-lock.yaml file
is out of sync with the updated `@types/vscode` specifier in package.json. Run
pnpm install to regenerate the lock file so it reflects the current package.json
dependencies. Note that this will likely resolve `@types/vscode` to version
1.120.0 (the latest within the ^1.85.0 range); if the intent is to pin to a
version closer to 1.85.0 that better matches the engines.vscode requirement,
consider updating the version specifier in package.json to use a more
restrictive range like ~1.85.0 or an explicit version like 1.85.0 before running
pnpm install.
Problem
pnpm --filter kickjs-devtools package(→vsce package) failed:vsceenforces that the declared@types/vscoderange minimum is ≤engines.vscode. The devDependency had drifted to^1.120.0while the engine floor stayed at^1.85.0.Fix
Lower
@types/vscodeto^1.85.0(match the engine floor) rather than bumpingengines.vscode:SecretStorage, webviews, and the command APIs all predate it.enginesinstead would drop support for users on VS Code 1.85–1.119 for no benefit.Also sets the marketplace
publishertoforinda82.Verify
kickjs-devtoolsis a private package (no changeset — manual version, currently 5.3.0).🤖 Generated with Claude Code
Summary by CodeRabbit