mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 17:22:45 -05:00
24 lines
669 B
TypeScript
24 lines
669 B
TypeScript
import { Action } from 'vs/base/common/actions';
|
|
import { IWindowsService } from 'vs/platform/windows/common/windows';
|
|
|
|
export class ShowFileInFolderAction extends Action {
|
|
|
|
constructor(private path: string, label: string, private windowsService: IWindowsService) {
|
|
super('showItemInFolder.action.id', label);
|
|
}
|
|
|
|
run(): Promise<void> {
|
|
return this.windowsService.showItemInFolder(this.path);
|
|
}
|
|
}
|
|
|
|
export class OpenFileInFolderAction extends Action {
|
|
|
|
constructor(private path: string, label: string, private windowsService: IWindowsService) {
|
|
super('showItemInFolder.action.id', label);
|
|
}
|
|
|
|
run() {
|
|
return this.windowsService.openExternal(this.path);
|
|
}
|
|
} |