Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[Bug] Instead of installing latest version of an extension, install an older one using cli

未关闭
#7,631 6 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
typescript
领域
cli

调研方向

从由 code-server --install-extension 调用的 code-server CLI 路径开始,使用详细日志和未指定版本的 charliermarsh.ruff 复现。将其版本解析与显式指定 @2026.34.0 的情况进行比较;当未指定版本的安装选择最新的扩展版本并且仍能正确安装其依赖项时,即完成。

由索引模型根据 Issue 内容生成。

描述

bug triage
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 charliermarsh.ruff@2026.34.0 --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 charliermarsh.ruff@2026.34.0 --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.4k
派生
6.9k
平均合并
2 天 13 小时
30 天内合并 PR
39

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

coder/code-server 的其他 Issue

查看 coder/code-server 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。