Code-server: use specific version of VSCode

Created on 26 Apr 2019  路  11Comments  路  Source: cdr/code-server

Is it possible to use a customized version of VSCode? Either to use a specific version or a private fork?

question

Most helpful comment

Once ~https://github.com/cdr/code-server/pull/795~ https://github.com/cdr/code-server/pull/857 is finished it should be possible to use any VS Code version with code-server (it will mostly negate the need for a patch).

All 11 comments

Technically, yes. You could fork this repo and create a custom patch.

I would prefer not to fork the repo, but rather be able to create my own dockerfile that inherits from this one. If you explain to me how this can be done, I would be happy to submit a PR.

I have the same question... it looks my current vscode version being used by code-server is 1.33.1... The way that I check the version of vscode is typing printenv from the command line within the code-server container, it gives me:

TERM_PROGRAM=vscode
TERM_PROGRAM_VERSION=1.33.1

However, the latest vscode version at the time of my writing this comment is 1.35.1. It'd be great that this project can be sync w/ vscode in some way... Haven't had chance dive into the source code, but just did a quick check, it looks there's env var used by build script to define the dependent vscode version, at this place. Is that the only place to change if I want to use a specific version of vscode? I feel that would be helpful if that can be documented.

@kylecarbs @mikestaub

It's probably not a good idea to change the version of vscode you use without ensuring the patch is up to date with the changes, since a lot of things can change between vscode versions.

Yeah, that makes sense... just for people who are early adopters :-) If something broken because of incompatible changes introduced that are depended by code-server, then the one who switched the vscode version will have to "pay" for that :-)

On the other hand, it may be also helpful for code-server to apply newer version of vscode to get some sort of early feedback...

@deansheather

Once ~https://github.com/cdr/code-server/pull/795~ https://github.com/cdr/code-server/pull/857 is finished it should be possible to use any VS Code version with code-server (it will mostly negate the need for a patch).

That sounds great... looking forward to this feature!

@code-asher

Once ~#795~ #857 is finished it should be possible to use any VS Code version with code-server (it will mostly negate the need for a patch).

When this feature is going to be available for the users.? Thank you.

@code-asher

Once ~#795~ #857 is finished it should be possible to use any VS Code version with code-server (it will mostly negate the need for a patch).

When this feature is going to be available for the users.? Thank you.

We just merged it on master! Go ahead try it now.

Closing as implemented. Let us know if there are regressions as a seperate issue.

I should note that I was overly optimistic about how possible it
would be to swap out versions. Currently every new version of VS
Code still requires small adjustments to the patch but hopefully
as VS Code web stabilizes that will no longer be necessary. For
now all we can do is wait.

If a customized version of VS Code is required, the easiest way
would be create a custom patch that you apply before running the
build.

We could also add support for taking a custom git URL from which
to clone a customized VS Code.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

grant picture grant  路  3Comments

oonqt picture oonqt  路  3Comments

pchecinski picture pchecinski  路  3Comments

justmao945 picture justmao945  路  3Comments

infogulch picture infogulch  路  3Comments