@@ -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,28 @@ 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+ @@ -16,7 +16,6 @@ import { getServiceMachineId } from 'vs/
142+ import { IStorageService } from 'vs/platform/storage/common/storage';
143+ import { TelemetryLevel } from 'vs/platform/telemetry/common/telemetry';
144+ import { getTelemetryLevel, supportsTelemetry } from 'vs/platform/telemetry/common/telemetryUtils';
145+ - import { RemoteAuthorities } from 'vs/base/common/network';
146+ import { TargetPlatform } from 'vs/platform/extensions/common/extensions';
147+
148+ const WEB_EXTENSION_RESOURCE_END_POINT_SEGMENT = '/web-extension-resource/';
149+ @@ -141,9 +140,9 @@ export abstract class AbstractExtensionR
150+ }
151+
152+ protected _isWebExtensionResourceEndPoint(uri: URI): boolean {
153+ - const uriPath = uri.path, serverRootPath = RemoteAuthorities.getServerRootPath();
154+ - // test if the path starts with the server root path followed by the web extension resource end point segment
155+ - return uriPath.startsWith(serverRootPath) && uriPath.startsWith(WEB_EXTENSION_RESOURCE_END_POINT_SEGMENT, serverRootPath.length);
156+ + const uriPath = uri.path;
157+ + // test if the path starts with the web extension resource end point segment
158+ + return uriPath.startsWith(WEB_EXTENSION_RESOURCE_END_POINT_SEGMENT);
159+ }
160+
161+ }
0 commit comments