mirror of
https://github.com/coder/code-server.git
synced 2024-11-27 00:10:01 +03:00
2bfe15b3e9
* Update upstream Code to 1.70 * Update CSP hashes * Update comment on remote authority Also remove it from script-src since it is invalid anyway. * Use absolute path for disable download patch Just to keep it consistent with the other imports. We initially added the patch like this so it was not part of the upgrade but might as well fix it now. * Fix inability to change language while code-server is running Co-authored-by: Asher <ash@coder.com>
22 lines
1.2 KiB
Diff
22 lines
1.2 KiB
Diff
Propagate the log level to the client
|
|
|
|
This can be tested by using `--log trace`. You should see plenty of debug and
|
|
trace logs in the console.
|
|
|
|
Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts
|
|
===================================================================
|
|
--- code-server.orig/lib/vscode/src/vs/server/node/webClientServer.ts
|
|
+++ code-server/lib/vscode/src/vs/server/node/webClientServer.ts
|
|
@@ -304,7 +304,10 @@ export class WebClientServer {
|
|
remoteAuthority,
|
|
webviewEndpoint: vscodeBase + this._staticRoute + '/out/vs/workbench/contrib/webview/browser/pre',
|
|
_wrapWebWorkerExtHostInIframe,
|
|
- developmentOptions: { enableSmokeTestDriver: this._environmentService.args['enable-smoke-test-driver'] ? true : undefined },
|
|
+ developmentOptions: {
|
|
+ enableSmokeTestDriver: this._environmentService.args['enable-smoke-test-driver'] ? true : undefined,
|
|
+ logLevel: this._logService.getLevel(),
|
|
+ },
|
|
settingsSyncOptions: !this._environmentService.isBuilt && this._environmentService.args['enable-sync'] ? { enabled: true } : undefined,
|
|
enableWorkspaceTrust: !this._environmentService.args['disable-workspace-trust'],
|
|
folderUri: resolveWorkspaceURI(this._environmentService.args['default-folder']),
|