Skip to content

Commit fb6144b

Browse files
committed
feedback
1 parent 2933140 commit fb6144b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/vs/server/node/webClientServer.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ export class WebClientServer {
107107
// callback support
108108
return this._handleCallback(res);
109109
}
110-
if (/^\/extensionResource\//.test(pathname)) {
110+
if (/^\/web-extension-resource\//.test(pathname)) {
111111
// extension resource support
112-
return this._handleExtensionResource(req, res, parsedUrl);
112+
return this._handleWebExtensionResource(req, res, parsedUrl);
113113
}
114114

115115
return serveError(req, res, 404, 'Not found.');
@@ -142,10 +142,10 @@ export class WebClientServer {
142142
/**
143143
* Handle extension resources
144144
*/
145-
private async _handleExtensionResource(req: http.IncomingMessage, res: http.ServerResponse, parsedUrl: url.UrlWithParsedQuery): Promise<void> {
146-
// Strip `/extensionResource/` from the path
145+
private async _handleWebExtensionResource(req: http.IncomingMessage, res: http.ServerResponse, parsedUrl: url.UrlWithParsedQuery): Promise<void> {
146+
// Strip `/web-extension-resource/` from the path
147147
const normalizedPathname = decodeURIComponent(parsedUrl.pathname!); // support paths that are uri-encoded (e.g. spaces => %20)
148-
const path = normalize(normalizedPathname.substr('/extensionResource/'.length));
148+
const path = normalize(normalizedPathname.substr('/web-extension-resource/'.length));
149149

150150
const url = URI.parse(path).with({
151151
scheme: this._productService.extensionsGallery?.resourceUrlTemplate ? URI.parse(this._productService.extensionsGallery.resourceUrlTemplate).scheme : 'https',
@@ -239,7 +239,7 @@ export class WebClientServer {
239239
'resourceUrlTemplate': resourceUrlTemplate.with({
240240
scheme: 'http',
241241
authority: remoteAuthority,
242-
path: `extensionResource/${resourceUrlTemplate.authority}${resourceUrlTemplate.path}`
242+
path: `web-extension-resource/${resourceUrlTemplate.authority}${resourceUrlTemplate.path}`
243243
}).toString(true)
244244
} : undefined
245245
}

0 commit comments

Comments
 (0)