mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
@@ -481,11 +481,13 @@ export class ConnectDatabaseAction extends QueryTaskbarAction {
|
|||||||
@IConnectionManagementService connectionManagementService: IConnectionManagementService
|
@IConnectionManagementService connectionManagementService: IConnectionManagementService
|
||||||
) {
|
) {
|
||||||
let label: string;
|
let label: string;
|
||||||
|
let tooltip: string;
|
||||||
let enabledClass: string;
|
let enabledClass: string;
|
||||||
|
|
||||||
if (isChangeConnectionAction) {
|
if (isChangeConnectionAction) {
|
||||||
enabledClass = ConnectDatabaseAction.EnabledChangeClass;
|
enabledClass = ConnectDatabaseAction.EnabledChangeClass;
|
||||||
label = nls.localize('changeConnectionDatabaseLabel', "Change Connection");
|
label = nls.localize('changeConnectionDatabaseLabel', "Change");
|
||||||
|
tooltip = nls.localize('changeConnectionDatabaseTooltip', "Change Connection");
|
||||||
} else {
|
} else {
|
||||||
enabledClass = ConnectDatabaseAction.EnabledDefaultClass;
|
enabledClass = ConnectDatabaseAction.EnabledDefaultClass;
|
||||||
label = nls.localize('connectDatabaseLabel', "Connect");
|
label = nls.localize('connectDatabaseLabel', "Connect");
|
||||||
@@ -494,6 +496,7 @@ export class ConnectDatabaseAction extends QueryTaskbarAction {
|
|||||||
super(connectionManagementService, editor, ConnectDatabaseAction.ID, enabledClass);
|
super(connectionManagementService, editor, ConnectDatabaseAction.ID, enabledClass);
|
||||||
|
|
||||||
this.label = label;
|
this.label = label;
|
||||||
|
this.tooltip = tooltip;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override async run(): Promise<void> {
|
public override async run(): Promise<void> {
|
||||||
@@ -908,8 +911,6 @@ export class ListDatabasesActionItem extends Disposable implements IActionViewIt
|
|||||||
* into a Notebook document
|
* into a Notebook document
|
||||||
*/
|
*/
|
||||||
export class ExportAsNotebookAction extends QueryTaskbarAction {
|
export class ExportAsNotebookAction extends QueryTaskbarAction {
|
||||||
|
|
||||||
public static IconClass = 'export';
|
|
||||||
public static ID = 'exportAsNotebookAction';
|
public static ID = 'exportAsNotebookAction';
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
@@ -917,8 +918,9 @@ export class ExportAsNotebookAction extends QueryTaskbarAction {
|
|||||||
@IConnectionManagementService connectionManagementService: IConnectionManagementService,
|
@IConnectionManagementService connectionManagementService: IConnectionManagementService,
|
||||||
@ICommandService private _commandService: ICommandService
|
@ICommandService private _commandService: ICommandService
|
||||||
) {
|
) {
|
||||||
super(connectionManagementService, editor, ExportAsNotebookAction.ID, ExportAsNotebookAction.IconClass);
|
super(connectionManagementService, editor, ExportAsNotebookAction.ID, Codicon.notebook.classNames);
|
||||||
this.label = nls.localize('queryEditor.exportSqlAsNotebook', "Export as Notebook");
|
this.label = nls.localize('queryEditor.exportSqlAsNotebookLabel', "To Notebook");
|
||||||
|
this.tooltip = nls.localize('queryEditor.exportSqlAsNotebookTooltip', "Export as Notebook");
|
||||||
}
|
}
|
||||||
|
|
||||||
public override async run(): Promise<void> {
|
public override async run(): Promise<void> {
|
||||||
|
|||||||
Reference in New Issue
Block a user