coder / coder/code-server

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

未关闭
#7,631 6 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看
bug triage
主要语言
TypeScript
星标
79.3k
派生
6.8k
平均合并
2 天 6 小时
30 天内合并 PR
41

描述

### Is there an existing issue for this?

- [x] 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

```shell
$ 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_

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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