From d13f94e900fcab9e595fb02bf0f819e3115c8538 Mon Sep 17 00:00:00 2001 From: Alvin Solidum Date: Mon, 29 Jul 2024 13:21:59 -0700 Subject: [PATCH] Fix base-path reference --- patched-vscode/src/vs/server/node/webClientServer.ts | 2 +- patches/base-path.diff | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/patched-vscode/src/vs/server/node/webClientServer.ts b/patched-vscode/src/vs/server/node/webClientServer.ts index 8b68c0bc..4294b59f 100644 --- a/patched-vscode/src/vs/server/node/webClientServer.ts +++ b/patched-vscode/src/vs/server/node/webClientServer.ts @@ -306,7 +306,7 @@ export class WebClientServer { scopes: [['user:email'], ['repo']] } : undefined; - const basePath: string = this._environmentService.args['server-base-path'] || "/" + const basePath: string = this._environmentService.args['base-path'] || "/" const base = relativeRoot(basePath) const vscodeBase = relativePath(basePath) diff --git a/patches/base-path.diff b/patches/base-path.diff index 65b0ed80..e729f907 100644 --- a/patches/base-path.diff +++ b/patches/base-path.diff @@ -137,7 +137,7 @@ Index: sagemaker-code-editor/vscode/src/vs/server/node/webClientServer.ts scopes: [['user:email'], ['repo']] } : undefined; -+ const basePath: string = this._environmentService.args['server-base-path'] || "/" ++ const basePath: string = this._environmentService.args['base-path'] || "/" + const base = relativeRoot(basePath) + const vscodeBase = relativePath(basePath) +