Skip to content

[Feat]: Add VS Code version number to --version output #4874

Closed
@jawnsy

Description

@jawnsy

What is your suggestion?

The code-server version output shows the version of code-server itself:

$ code-server --version
4.0.2 5cdfe74686aa73e023f8354a9a6014eb30caa7dd

It is possible to get the corresponding (embedded) VS Code/code-oss-dev version using the --json output:

$ code-server --version --json
{"codeServer":"4.0.2","commit":"5cdfe74686aa73e023f8354a9a6014eb30caa7dd","vscode":"1.63.0"}

It would be convenient to also have the VSCode version in the --version output.

Why do you want this feature?

This makes the VS Code version more discoverable, which is useful when evaluating the versions of extensions that are compatible.

Are there any workarounds to get this functionality today?

Yes, users can run code-server --version --json and look at the output. But JSON output is not as human-readable.

Are you interested in submitting a PR for this?

Sure, would like a pointer to the code though.

Metadata

Metadata

Assignees

Labels

enhancementSome improvement that isn't a feature

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions