[Bug] Instead of installing latest version of an extension, install an older one using cli
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- typescript
- 领域
- cli
调研方向
从由 code-server --install-extension 调用的 code-server CLI 路径开始,使用详细日志和未指定版本的 charliermarsh.ruff 复现。将其版本解析与显式指定 @2026.34.0 的情况进行比较;当未指定版本的安装选择最新的扩展版本并且仍能正确安装其依赖项时,即完成。
由索引模型根据 Issue 内容生成。
描述
Is there an existing issue for this?
- I have searched the existing issues
OS/Web Information
- Web Browser:
- Local OS:
- Remote OS: Ubuntu
- Remote Architecture: x86_64
code-server --version: 4.107.1 8c077bf605a76ebb600d23b71e21c8756a2aee2a with Code 1.107.1
Steps to Reproduce
Using the cli (example with ruff extension)
code-server --install-extension charliermarsh.ruff
Expected
I expect the latest version to be installed eg 2026.34.0. However an older one is installed : 2022.0.17
Actual
The newest version is installed only if I specify it.
code-server --install-extension [email protected] --verbose
I observe the same behavior for other extensions like continue.continue or hediet.vscode-drawio.
Logs
$ code-server --install-extension charliermarsh.ruff --verbose
[2026-01-12T12:21:41.519Z] debug Found VS Code arguments; spawning VS Code CLI
[2026-01-12T12:21:41.521Z] debug Running Code CLI
Installing extensions...
Installing extension 'charliermarsh.ruff'...
Extension 'ms-python.vscode-python-envs' v1.16.0 was successfully installed.
Extension 'charliermarsh.ruff' v2022.0.17 was successfully installed.
Extension 'ms-python.debugpy' v2024.0.0 was successfully installed.
Extension 'ms-python.python' v2026.0.0 was successfully installed.
$ code-server --install-extension [email protected] --verbose
[2026-01-12T12:41:33.475Z] debug Found VS Code arguments; spawning VS Code CLI
[2026-01-12T12:41:33.476Z] debug Running Code CLI
Installing extensions...
Installing extension 'charliermarsh.ruff' v2026.34.0...
Extension 'ms-python.python' v2026.0.0 was successfully installed.
Extension 'ms-python.vscode-python-envs' v1.16.0 was successfully installed.
Extension 'ms-python.debugpy' v2024.0.0 was successfully installed.
Extension 'charliermarsh.ruff' v2026.34.0 was successfully installed.
Screenshot/Video
No response
Does this bug reproduce in native VS Code?
I did not test native VS Code
Does this bug reproduce in VS Code web?
I did not test VS Code web
Does this bug reproduce in GitHub Codespaces?
I did not test GitHub Codespaces
Are you accessing code-server over a secure context?
- I am using a secure context.
Notes
No response
- 主要语言
- TypeScript
- 星标
- 79.9k
- 派生
- 6.9k
- 平均合并
- 20 小时 21 分钟
- 30 天内合并 PR
- 51
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
coder/code-server 的其他 Issue
-
Error not true未关闭
难度 3/5 1-2 天 新手友好度 45/100
coder/code-server#8148 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 51/100
coder/code-server#8145 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 15/100
coder/code-server#8142 · 1 条评论 ·
维护者通常 1 天内回复
-
[Bug]: --proxy-domain does not proxy when the host includes a port可能已有人在做 @adityajai119 于 11 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 35/100
coder/code-server#8128 · 1 条评论 ·
维护者通常 1 天内回复
-
[Bug]: /healthz with a query string triggers a heartbeat可能已有人在做 @adityajai119 于 12 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 25/100
coder/code-server#8126 · 1 条评论 ·
维护者通常 1 天内回复
查看 coder/code-server 的全部 Issue
相似的 Issue
-
Y2025: QBI forms print a negative taxable income; Form 8995-A lines 14b/14c check the wrong column未关闭
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 80/100
readest/readest#7903 · 1 条评论 ·
维护者通常 1 天内回复
-
type: documentation
难度 2/5 1-3 小时 新手友好度 78/100
Oddmash/oddmash-ui#72 ·
维护者通常 1 天内回复
-
bug good first issue priority: low
难度 2/5 1-3 小时 新手友好度 82/100
TMHSDigital/steam-mcp#106 ·
-
bug priority:p3
难度 2/5 1-3 小时 新手友好度 78/100
LCNINE/almondyoung-server#1562 ·
维护者通常 1 天内回复