@@ -210,7 +210,7 @@ index 2c64061da7..c0ef8faedd 100644
210
210
// Do nothing. If we can't read the file we have no
211
211
// language pack config.
212
212
diff --git a/src/vs/code/browser/workbench/workbench.ts b/src/vs/code/browser/workbench/workbench.ts
213
- index 45f6f17ce0..ecdb80a5ba 100644
213
+ index 45f6f17ce0..79fde0b92c 100644
214
214
--- a/src/vs/code/browser/workbench/workbench.ts
215
215
+++ b/src/vs/code/browser/workbench/workbench.ts
216
216
@@ -246,12 +246,18 @@ class WorkspaceProvider implements IWorkspaceProvider {
@@ -219,7 +219,7 @@ index 45f6f17ce0..ecdb80a5ba 100644
219
219
else if (isFolderToOpen(workspace)) {
220
220
- targetHref = `${document.location.origin}${document.location.pathname}?${WorkspaceProvider.QUERY_PARAM_FOLDER}=${encodeURIComponent(workspace.folderUri.toString())}`;
221
221
+ const target = workspace.folderUri.scheme === Schemas.vscodeRemote
222
- + ? workspace.folderUri.path
222
+ + ? encodeURIComponent( workspace.folderUri.path).replace(/%2F/g, "/")
223
223
+ : encodeURIComponent(workspace.folderUri.toString());
224
224
+ targetHref = `${document.location.origin}${document.location.pathname}?${WorkspaceProvider.QUERY_PARAM_FOLDER}=${target}`;
225
225
}
@@ -228,7 +228,7 @@ index 45f6f17ce0..ecdb80a5ba 100644
228
228
else if (isWorkspaceToOpen(workspace)) {
229
229
- targetHref = `${document.location.origin}${document.location.pathname}?${WorkspaceProvider.QUERY_PARAM_WORKSPACE}=${encodeURIComponent(workspace.workspaceUri.toString())}`;
230
230
+ const target = workspace.workspaceUri.scheme === Schemas.vscodeRemote
231
- + ? workspace.workspaceUri.path
231
+ + ? encodeURIComponent( workspace.workspaceUri.path).replace(/%2F/g, "/")
232
232
+ : encodeURIComponent(workspace.workspaceUri.toString());
233
233
+ targetHref = `${document.location.origin}${document.location.pathname}?${WorkspaceProvider.QUERY_PARAM_WORKSPACE}=${target}`;
234
234
}
0 commit comments