@@ -98,7 +98,7 @@ Index: sagemaker-code-editor/vscode/src/vs/server/node/webClientServer.ts
9898===================================================================
9999--- sagemaker-code-editor.orig/vscode/src/vs/server/node/webClientServer.ts
100100+++ sagemaker-code-editor/vscode/src/vs/server/node/webClientServer.ts
101- @@ -320 ,14 +320 ,7 @@ export class WebClientServer {
101+ @@ -331 ,14 +331 ,7 @@ export class WebClientServer {
102102 const productConfiguration = {
103103 rootEndpoint: base,
104104 embedderIdentifier: 'server-distro',
@@ -134,3 +134,20 @@ Index: sagemaker-code-editor/vscode/product.json
134134 "linkProtectionTrustedDomains": [
135135 "https://open-vsx.org"
136136 ]
137+ Index: sagemaker-code-editor/vscode/src/vs/platform/extensionResourceLoader/common/extensionResourceLoader.ts
138+ ===================================================================
139+ --- sagemaker-code-editor.orig/vscode/src/vs/platform/extensionResourceLoader/common/extensionResourceLoader.ts
140+ +++ sagemaker-code-editor/vscode/src/vs/platform/extensionResourceLoader/common/extensionResourceLoader.ts
141+ @@ -141,9 +141,9 @@ export abstract class AbstractExtensionR
142+ }
143+
144+ protected _isWebExtensionResourceEndPoint(uri: URI): boolean {
145+ - const uriPath = uri.path, serverRootPath = RemoteAuthorities.getServerRootPath();
146+ - // test if the path starts with the server root path followed by the web extension resource end point segment
147+ - return uriPath.startsWith(serverRootPath) && uriPath.startsWith(WEB_EXTENSION_RESOURCE_END_POINT_SEGMENT, serverRootPath.length);
148+ + const uriPath = uri.path;
149+ + // test if the path starts with the web extension resource end point segment
150+ + return uriPath.startsWith(WEB_EXTENSION_RESOURCE_END_POINT_SEGMENT);
151+ }
152+
153+ }
0 commit comments