mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-22 01:25:38 -05:00
41 lines
1.4 KiB
TypeScript
41 lines
1.4 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import { Action } from 'vs/base/common/actions';
|
|
import * as nls from 'vs/nls';
|
|
import { ResourceViewerInput } from 'sql/workbench/browser/editor/resourceViewer/resourceViewerInput';
|
|
|
|
export class ResourceViewerEditColumns extends Action {
|
|
public static readonly ID = 'resourceViewer.editColumns';
|
|
public static readonly LABEL = nls.localize('resourceViewer.editColumns', "Edit Columns");
|
|
|
|
constructor() {
|
|
super(ResourceViewerEditColumns.ID, ResourceViewerEditColumns.LABEL, 'codicon edit');
|
|
}
|
|
|
|
public async run(input: ResourceViewerInput): Promise<void> {
|
|
|
|
}
|
|
}
|
|
|
|
export class ResourceViewerRefresh extends Action {
|
|
public static readonly ID = 'resourceViewer.refresh';
|
|
public static readonly LABEL = nls.localize('resourceViewer.refresh', "Refresh");
|
|
|
|
constructor() {
|
|
super(ResourceViewerRefresh.ID, ResourceViewerRefresh.LABEL, 'codicon refresh');
|
|
}
|
|
|
|
public async run(input: ResourceViewerInput): Promise<void> {
|
|
this.enabled = false;
|
|
try {
|
|
await input.refresh();
|
|
} finally {
|
|
this.enabled = true;
|
|
}
|
|
|
|
}
|
|
}
|