chore: update vscode (#4680)

* Update VS Code

Fixes https://github.com/coder/code-server/issues/4598
Fixes https://github.com/coder/code-server/issues/4620
Fixes https://github.com/coder/code-server/issues/4600

* Add locale flag back

This is valid again now that we have restored display language support.
This commit is contained in:
Asher 2022-01-04 12:37:11 -06:00 committed by GitHub
parent 7695de2831
commit f04fcf2d64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 7 deletions

View File

@ -32,12 +32,11 @@ implementation (#4414).
- Web socket compression has been made the default (when supported). This means - Web socket compression has been made the default (when supported). This means
the `--enable` flag will no longer take `permessage-deflate` as an option. the `--enable` flag will no longer take `permessage-deflate` as an option.
- Extra extension directories have been removed. The `--extra-extensions-dir` - Extra extension directories have been removed. The `--extra-extensions-dir`
and `--extra-builtin-extensions-dir` will no longer be accepted. and `--extra-builtin-extensions-dir` flags will no longer be accepted.
- The `--install-source` and `--locale` flags have been removed. - The `--install-source` flag has been removed.
- The static endpoint can no longer reach outside code-server. However the - The static endpoint can no longer reach outside code-server. However the
vscode-remote-resource endpoint still can. vscode-remote-resource endpoint still can.
- OpenVSX has been made the default marketplace. However this means web - OpenVSX has been made the default marketplace.
extensions like Vim may be broken.
- The last opened folder/workspace is no longer stored separately in the - The last opened folder/workspace is no longer stored separately in the
settings file (we rely on the already-existing query object instead). settings file (we rely on the already-existing query object instead).

View File

@ -57,6 +57,7 @@ export interface UserProvidedArgs {
enable?: string[] enable?: string[]
help?: boolean help?: boolean
host?: string host?: string
locale?: string
port?: number port?: number
json?: boolean json?: boolean
log?: LogLevel log?: LogLevel
@ -163,6 +164,7 @@ const options: Options<Required<UserProvidedArgs>> = {
enable: { type: "string[]" }, enable: { type: "string[]" },
help: { type: "boolean", short: "h", description: "Show this output." }, help: { type: "boolean", short: "h", description: "Show this output." },
json: { type: "boolean" }, json: { type: "boolean" },
locale: { type: "string" }, // The preferred way to set the locale is via the UI.
open: { type: "boolean", description: "Open in browser on startup. Does not work remotely." }, open: { type: "boolean", description: "Open in browser on startup. Does not work remotely." },
"bind-addr": { "bind-addr": {

View File

@ -63,6 +63,8 @@ describe("parser", () => {
"--verbose", "--verbose",
"2", "2",
["--locale", "ja"],
["--log", "error"], ["--log", "error"],
"--help", "--help",
@ -103,6 +105,7 @@ describe("parser", () => {
help: true, help: true,
host: "0.0.0.0", host: "0.0.0.0",
json: true, json: true,
locale: "ja",
log: "error", log: "error",
open: true, open: true,
port: 8081, port: 8081,

2
vendor/package.json vendored
View File

@ -7,6 +7,6 @@
"postinstall": "./postinstall.sh" "postinstall": "./postinstall.sh"
}, },
"devDependencies": { "devDependencies": {
"code-oss-dev": "cdr/vscode#48fae57fd9adb772fc1b10e4a9a5e1ba6880640a" "code-oss-dev": "cdr/vscode#69a6ce45fc5b883aa8a950e10b79fd083eb0a7d7"
} }
} }

4
vendor/yarn.lock vendored
View File

@ -274,9 +274,9 @@ clone-response@^1.0.2:
dependencies: dependencies:
mimic-response "^1.0.0" mimic-response "^1.0.0"
code-oss-dev@cdr/vscode#48fae57fd9adb772fc1b10e4a9a5e1ba6880640a: code-oss-dev@cdr/vscode#69a6ce45fc5b883aa8a950e10b79fd083eb0a7d7:
version "1.63.0" version "1.63.0"
resolved "https://codeload.github.com/cdr/vscode/tar.gz/48fae57fd9adb772fc1b10e4a9a5e1ba6880640a" resolved "https://codeload.github.com/cdr/vscode/tar.gz/69a6ce45fc5b883aa8a950e10b79fd083eb0a7d7"
dependencies: dependencies:
"@microsoft/applicationinsights-web" "^2.6.4" "@microsoft/applicationinsights-web" "^2.6.4"
"@parcel/watcher" "2.0.3" "@parcel/watcher" "2.0.3"