diff --git a/src/sql/workbench/common/workspaceActions.ts b/src/sql/workbench/common/workspaceActions.ts index 148306372f..66506871f0 100644 --- a/src/sql/workbench/common/workspaceActions.ts +++ b/src/sql/workbench/common/workspaceActions.ts @@ -6,19 +6,17 @@ import { Action } from 'vs/base/common/actions'; import { IOpenerService } from 'vs/platform/opener/common/opener'; //tslint:disable-next-line:layering -import { ElectronMainService } from 'vs/platform/electron/electron-main/electronMainService'; -//tslint:disable-next-line:layering import { IElectronService } from 'vs/platform/electron/node/electron'; import { URI } from 'vs/base/common/uri'; export class ShowFileInFolderAction extends Action { - constructor(private path: string, label: string, @IElectronService private windowsService: ElectronMainService) { + constructor(private path: string, label: string, @IElectronService private electronService: IElectronService) { super('showItemInFolder.action.id', label); } run(): Promise { - return this.windowsService.showItemInFolder(undefined, this.path); + return this.electronService.showItemInFolder(this.path); } }