From ab220b2e1999b89a136945c92675b283a2d9666d Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Sat, 11 Jun 2022 16:14:28 +0200 Subject: [PATCH] Open file command does not start in relative to the current file's path (fix #151668) (#151820) --- src/vs/platform/dialogs/electron-main/dialogMainService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vs/platform/dialogs/electron-main/dialogMainService.ts b/src/vs/platform/dialogs/electron-main/dialogMainService.ts index 6bc6ec776e042..126b87c2ddafb 100644 --- a/src/vs/platform/dialogs/electron-main/dialogMainService.ts +++ b/src/vs/platform/dialogs/electron-main/dialogMainService.ts @@ -82,7 +82,8 @@ export class DialogMainService implements IDialogMainService { const dialogOptions: OpenDialogOptions = { title: options.title, buttonLabel: options.buttonLabel, - filters: options.filters + filters: options.filters, + defaultPath: options.defaultPath }; // Ensure properties