Skip to content

Commit f93c696

Browse files
committed
Resources lost their authority part (fix #141328)
1 parent 2a3b916 commit f93c696

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/vs/code/browser/workbench/workbench.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ class LocalStorageURLCallbackProvider extends Disposable implements IURLCallback
280280

281281
class WorkspaceProvider implements IWorkspaceProvider {
282282

283-
private static readonly LAST_WORKSPACE_STORAGE_KEY = 'workspace.lastOpened';
283+
private static readonly LAST_WORKSPACE_STORAGE_KEY = 'workspaces.lastOpened';
284284

285285
private static QUERY_PARAM_EMPTY_WINDOW = 'ew';
286286
private static QUERY_PARAM_FOLDER = 'folder';
@@ -300,7 +300,7 @@ class WorkspaceProvider implements IWorkspaceProvider {
300300
// Folder
301301
case WorkspaceProvider.QUERY_PARAM_FOLDER:
302302
if (config.remoteAuthority) {
303-
workspace = { folderUri: URI.from({ scheme: 'vscode-remote', path: value }) }; // support the nicer URI syntax for folders when connected to a remote
303+
workspace = { folderUri: URI.from({ scheme: 'vscode-remote', path: value, authority: config.remoteAuthority }) }; // support the nicer URI syntax for folders when connected to a remote
304304
} else {
305305
workspace = { folderUri: URI.parse(value) };
306306
}
@@ -310,7 +310,7 @@ class WorkspaceProvider implements IWorkspaceProvider {
310310
// Workspace
311311
case WorkspaceProvider.QUERY_PARAM_WORKSPACE:
312312
if (config.remoteAuthority) {
313-
workspace = { workspaceUri: URI.from({ scheme: 'vscode-remote', path: value }) }; // support the nicer URI syntax for workspaces when connected to a remote
313+
workspace = { workspaceUri: URI.from({ scheme: 'vscode-remote', path: value, authority: config.remoteAuthority }) }; // support the nicer URI syntax for workspaces when connected to a remote
314314
} else {
315315
workspace = { folderUri: URI.parse(value) };
316316
}

0 commit comments

Comments
 (0)