Skip to content

Commit 9bb9080

Browse files
committed
Remove unused import
1 parent 3e31fde commit 9bb9080

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

patched-vscode/src/vs/platform/extensionResourceLoader/common/extensionResourceLoader.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ export abstract class AbstractExtensionResourceLoaderService implements IExtensi
141141
}
142142

143143
protected _isWebExtensionResourceEndPoint(uri: URI): boolean {
144-
const uriPath = uri.path, serverRootPath = RemoteAuthorities.getServerRootPath();
145-
// test if the path starts with the server root path followed by the web extension resource end point segment
146-
return uriPath.startsWith(serverRootPath) && uriPath.startsWith(WEB_EXTENSION_RESOURCE_END_POINT_SEGMENT, serverRootPath.length);
144+
const uriPath = uri.path;
145+
// test if the path starts with the web extension resource end point segment
146+
return uriPath.startsWith(WEB_EXTENSION_RESOURCE_END_POINT_SEGMENT);
147147
}
148148

149149
}

patches/custom-extensions-marketplace.diff

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)