File tree 1 file changed +1
-18
lines changed
1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -110,24 +110,7 @@ Index: code-server/lib/vscode/src/vs/code/browser/workbench/workbench.ts
110
110
111
111
interface ICredential {
112
112
service: string;
113
- @@ -485,6 +486,7 @@ function doCreateUri(path: string, query
114
- });
115
- }
116
-
117
- + path = (window.location.pathname + "/" + path).replace(/\/\/+/g, "/")
118
- return URI.parse(window.location.href).with({ path, query });
119
- }
120
-
121
- @@ -496,7 +498,7 @@ function doCreateUri(path: string, query
122
- if (!configElement || !configElementAttribute) {
123
- throw new Error('Missing web configuration element');
124
- }
125
- - const config: IWorkbenchConstructionOptions & { folderUri?: UriComponents; workspaceUri?: UriComponents; callbackRoute: string } = JSON.parse(configElementAttribute);
126
- + const config: IWorkbenchConstructionOptions & { folderUri?: UriComponents; workspaceUri?: UriComponents; callbackRoute: string } = { ...JSON.parse(configElementAttribute), remoteAuthority: location.host }
127
-
128
- // Create workbench
129
- create(document.body, {
130
- @@ -506,6 +508,22 @@ function doCreateUri(path: string, query
113
+ @@ -507,6 +508,22 @@ function doCreateUri(path: string, query
131
114
} : undefined,
132
115
workspaceProvider: WorkspaceProvider.create(config),
133
116
urlCallbackProvider: new LocalStorageURLCallbackProvider(config.callbackRoute),
You can’t perform that action at this time.
0 commit comments