-
Notifications
You must be signed in to change notification settings - Fork 5.9k
--version argument to include the vsc version #4163
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
Comments
Neat idea! Thanks for raising. Added to the Backlog Candidates which just means we'll wait for the community to weigh in. |
We technically support this via $ code-server --version --json
{
codeServer: '3.11.1',
commit: 'b9d79dc1988a30e129aa6452289cc69ad5da7a6c',
vscode: '1.60.0'
} |
Oh ok, I didn't realize there was a json flag. Maybe I should have read the documentation. This does not really solve my need though since this is not a valid json response. In the current response, json parsers cannot read it because it is not valid json. Json should have double quotes around the keys and values. Right now there are no double quotes around the keys, and the values have single quotes instead of double. > code-server --version --json | jq -r '.vscode'
parse error: Invalid numeric literal at line 2, column 13 |
@JtMotoX you are absolutely correct, and that’s a very easy fix. We can likely have it out in 3.12.1, however, here’s a temp fix: $ node -e "console.log(JSON.stringify($(code-server --version --json)))”
{"codeServer":"3.11.1","commit":"acb5de66b71a3f8f1cc065df4633ecd3f9788d46","vscode":"1.57.1"} |
This workaround works. I will use this until the changes are applied on your side. Thanks 👍 > node -e "console.log(JSON.stringify($(code-server --version --json)))" | jq -r '.vscode'
1.57.1
> code --version | head -n1
1.57.1 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no activity occurs in the next 5 days. |
This was done in #4925 and is included in 4.1.0 |
Duplicate of #4874 |
Current:
Desired (example):
The text was updated successfully, but these errors were encountered: