Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 authored Dec 30, 2022
1 parent 257533b commit c53c123
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ export class NativeHostMainService extends Disposable implements INativeHostMain
gotoLineMode: options.gotoLineMode,
noRecentEntry: options.noRecentEntry,
waitMarkerFileURI: options.waitMarkerFileURI,
remoteAuthority: options.remoteAuthority || undefined
remoteAuthority: options.remoteAuthority || undefined,
forceProfile: options.forceProfile,
forceTempProfile: options.forceTempProfile,
});
}
}
Expand Down
3 changes: 3 additions & 0 deletions src/vs/platform/window/common/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ export interface IOpenWindowOptions extends IBaseOpenWindowsOptions {
readonly gotoLineMode?: boolean;

readonly waitMarkerFileURI?: URI;

readonly forceProfile?: string;
readonly forceTempProfile?: boolean;
}

export interface IAddFoldersRequest {
Expand Down
6 changes: 5 additions & 1 deletion src/vs/workbench/browser/actions/workspaceCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ interface IOpenFolderAPICommandOptions {
forceReuseWindow?: boolean;
noRecentEntry?: boolean;
forceLocalWindow?: boolean;
forceProfile?: string;
forceTempProfile?: boolean;
}

CommandsRegistry.registerCommand({
Expand Down Expand Up @@ -187,7 +189,9 @@ CommandsRegistry.registerCommand({
forceNewWindow: arg?.forceNewWindow,
forceReuseWindow: arg?.forceReuseWindow,
noRecentEntry: arg?.noRecentEntry,
remoteAuthority: arg?.forceLocalWindow ? null : undefined
remoteAuthority: arg?.forceLocalWindow ? null : undefined,
forceProfile: arg?.forceProfile,
forceTempProfile: arg?.forceTempProfile,
};

const uriToOpen: IWindowOpenable = (hasWorkspaceFileExtension(uri) || uri.scheme === Schemas.untitled) ? { workspaceUri: uri } : { folderUri: uri };
Expand Down

0 comments on commit c53c123

Please sign in to comment.