Skip to content

Add version number option to --install-extension #1965

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
arseniybanayev opened this issue Aug 12, 2020 · 5 comments
Closed

Add version number option to --install-extension #1965

arseniybanayev opened this issue Aug 12, 2020 · 5 comments

Comments

@arseniybanayev
Copy link

Due to this issue, I would like to be able to declare in my "IDE" Dockerfile that the MS Python extension should be installed at version 2020.05.86806, instead of latest (which is default).

Could you add an option to code-server --install-extension to allow specifying the version? Otherwise, I have to manually select the desired version whenever my "IDE" container starts anew. Suggested syntax could be code-server --install-extension extension-name [--version 2020.05.86806].

@code-asher
Copy link
Member

VS Code lets you do this using @version and the same applies to code-server (although VS Code doesn't document this anywhere for some reason, at least not that I could find).

code-server --install-extension [email protected]

@code-asher
Copy link
Member

It might not be a bad idea to mention this in our --help output or the FAQ.

@code-asher
Copy link
Member

Actually they recently added it to their help so we should do the same.

code-asher added a commit that referenced this issue Aug 13, 2020
This mimics a recent change in VS Code's help. See #1965.
@arseniybanayev
Copy link
Author

Thanks! Awesome

@nhooyr
Copy link
Contributor

nhooyr commented Aug 17, 2020

Nice @code-asher

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants