debt - shuffle some windows service methods around

This commit is contained in:
Benjamin Pasero
2017-07-03 16:35:45 +02:00
parent f82aaac1ae
commit 5e8cd0e93f
11 changed files with 26 additions and 36 deletions
+2 -2
View File
@@ -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 || []);
});
});