mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-19 06:39:55 +01:00
debt - shuffle some windows service methods around
This commit is contained in:
@@ -1181,9 +1181,9 @@ export class WindowsManager implements IWindowsMainService {
|
||||
this.fileDialog.pickAndOpen({ pickFolders: true, forceNewWindow, window, title: nls.localize('openFolder', "Open Folder") }, 'openFolder', data);
|
||||
}
|
||||
|
||||
public pickFolder(options?: { buttonLabel: string; title: string; }): TPromise<string[]> {
|
||||
public pickFolder(window?: CodeWindow, options?: { buttonLabel: string; title: string; }): TPromise<string[]> {
|
||||
return new TPromise((c, e) => {
|
||||
this.fileDialog.getFileOrFolderPaths({ pickFolders: true, buttonLabel: options && options.buttonLabel }, folders => {
|
||||
this.fileDialog.getFileOrFolderPaths({ pickFolders: true, window, buttonLabel: options && options.buttonLabel }, folders => {
|
||||
c(folders || []);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user