Skip to content

Commit b8aa81f

Browse files
committed
fixup!: force update proxy patch
1 parent 768b0c8 commit b8aa81f

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

patches/proxy-uri.diff

+1-18
Original file line numberDiff line numberDiff line change
@@ -110,24 +110,7 @@ Index: code-server/lib/vscode/src/vs/code/browser/workbench/workbench.ts
110110

111111
interface ICredential {
112112
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
131114
} : undefined,
132115
workspaceProvider: WorkspaceProvider.create(config),
133116
urlCallbackProvider: new LocalStorageURLCallbackProvider(config.callbackRoute),

0 commit comments

Comments
 (0)