@@ -138,16 +138,24 @@ Index: sagemaker-code-editor/vscode/src/vs/platform/extensionResourceLoader/comm
138138===================================================================
139139--- sagemaker-code-editor.orig/vscode/src/vs/platform/extensionResourceLoader/common/extensionResourceLoader.ts
140140+++ sagemaker-code-editor/vscode/src/vs/platform/extensionResourceLoader/common/extensionResourceLoader.ts
141- @@ -141,9 +141,9 @@ export abstract class AbstractExtensionR
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
142150 }
143151
144152 protected _isWebExtensionResourceEndPoint(uri: URI): boolean {
145153- const uriPath = uri.path, serverRootPath = RemoteAuthorities.getServerRootPath();
146154- // test if the path starts with the server root path followed by the web extension resource end point segment
147155- 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);
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);
151159 }
152160
153161 }
0 commit comments