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

オープン
#7,631 コメント 6 件 リアクション 4 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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時間
マージ済み PR(30日)
39

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

coder/code-server のほかの issue

coder/code-server の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。