[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.5k
- 分支
- 6.9k
- 平均合併
- 1 天 15 小時
- 30 天內合併 PR
- 37
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
coder/code-server 的其他 Issue
-
enhancement
難度 5/5 一週以上 新手友好度 35/100
coder/code-server#7976 · 2 則留言 ·
維護者通常 1 天內回覆
-
enhancement
難度 5/5 一週以上 新手友好度 35/100
coder/code-server#7962 · 3 則留言 ·
維護者通常 1 天內回覆
-
bug needs-investigation
難度 4/5 3-5 天 新手友好度 55/100
coder/code-server#7955 · 1 則留言 ·
維護者通常 1 天內回覆
-
enhancement
難度 5/5 一週以上 新手友好度 42/100
coder/code-server#7948 · 1 則留言 · 2 個 reaction ·
維護者通常 1 天內回覆
-
bug code-server needs-investigation
難度 4/5 3-5 天 新手友好度 48/100
coder/code-server#7938 · 3 則留言 · 2 個 reaction ·
維護者通常 1 天內回覆
查看 coder/code-server 的全部 Issue
相似的 Issue
-
enhancement providers-api ui-dashboard
難度 2/5 1-3 小時 新手友好度 61/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 88/100
維護者通常 1 天內回覆
-
external-issue to-triage
難度 1/5 1 小時以內 新手友好度 90/100
維護者通常 1 天內回覆
-
needs triage
難度 1/5 1 小時以內 新手友好度 88/100
homarr-labs/homarr#6976 · 2 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆