Skip to content

Commit

Permalink
Resources lost their authority part (fix #141328)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Jan 25, 2022
1 parent 2a3b916 commit f93c696
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vs/code/browser/workbench/workbench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ class LocalStorageURLCallbackProvider extends Disposable implements IURLCallback

class WorkspaceProvider implements IWorkspaceProvider {

private static readonly LAST_WORKSPACE_STORAGE_KEY = 'workspace.lastOpened';
private static readonly LAST_WORKSPACE_STORAGE_KEY = 'workspaces.lastOpened';

private static QUERY_PARAM_EMPTY_WINDOW = 'ew';
private static QUERY_PARAM_FOLDER = 'folder';
Expand All @@ -300,7 +300,7 @@ class WorkspaceProvider implements IWorkspaceProvider {
// Folder
case WorkspaceProvider.QUERY_PARAM_FOLDER:
if (config.remoteAuthority) {
workspace = { folderUri: URI.from({ scheme: 'vscode-remote', path: value }) }; // support the nicer URI syntax for folders when connected to a remote
workspace = { folderUri: URI.from({ scheme: 'vscode-remote', path: value, authority: config.remoteAuthority }) }; // support the nicer URI syntax for folders when connected to a remote
} else {
workspace = { folderUri: URI.parse(value) };
}
Expand All @@ -310,7 +310,7 @@ class WorkspaceProvider implements IWorkspaceProvider {
// Workspace
case WorkspaceProvider.QUERY_PARAM_WORKSPACE:
if (config.remoteAuthority) {
workspace = { workspaceUri: URI.from({ scheme: 'vscode-remote', path: value }) }; // support the nicer URI syntax for workspaces when connected to a remote
workspace = { workspaceUri: URI.from({ scheme: 'vscode-remote', path: value, authority: config.remoteAuthority }) }; // support the nicer URI syntax for workspaces when connected to a remote
} else {
workspace = { folderUri: URI.parse(value) };
}
Expand Down

0 comments on commit f93c696

Please sign in to comment.