@@ -261,7 +261,7 @@ index 2c64061da7..c0ef8faedd 100644
261
261
// Do nothing. If we can't read the file we have no
262
262
// language pack config.
263
263
diff --git a/src/vs/code/browser/workbench/workbench.ts b/src/vs/code/browser/workbench/workbench.ts
264
- index 45f6f17ce0..102289c147 100644
264
+ index 45f6f17ce0..546b4c24de 100644
265
265
--- a/src/vs/code/browser/workbench/workbench.ts
266
266
+++ b/src/vs/code/browser/workbench/workbench.ts
267
267
@@ -16,6 +16,7 @@ import product from 'vs/platform/product/common/product';
@@ -306,14 +306,14 @@ index 45f6f17ce0..102289c147 100644
306
306
const config: IWorkbenchConstructionOptions & { folderUri?: UriComponents, workspaceUri?: UriComponents } = JSON.parse(configElementAttribute);
307
307
308
308
+ // Strip the protocol from the authority if it exists.
309
- + const normalizeAuthority = (authority? : string): string => authority && authority.replace(/^https?:\/\//, "");
309
+ + const normalizeAuthority = (authority: string): string => authority.replace(/^https?:\/\//, "");
310
310
+ if (config.remoteAuthority) {
311
311
+ (config as any).remoteAuthority = normalizeAuthority(config.remoteAuthority);
312
312
+ }
313
- + if (config.workspaceUri) {
313
+ + if (config.workspaceUri && config.workspaceUri.authority ) {
314
314
+ config.workspaceUri.authority = normalizeAuthority(config.workspaceUri.authority);
315
315
+ }
316
- + if (config.folderUri) {
316
+ + if (config.folderUri && config.folderUri.authority ) {
317
317
+ config.folderUri.authority = normalizeAuthority(config.folderUri.authority);
318
318
+ }
319
319
+
0 commit comments