mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Updates actual plan text to enable/disable instead of include/exclude (#19796)
* Updates actual plan text to enable/disable instead of include/exclude * Makes actual plan button text static and readonly
This commit is contained in:
@@ -343,8 +343,8 @@ export class ToggleActualExecutionPlanModeAction extends QueryTaskbarAction {
|
|||||||
public static EnabledClass = 'enabledActualExecutionPlan';
|
public static EnabledClass = 'enabledActualExecutionPlan';
|
||||||
public static ID = 'toggleActualExecutionPlanModeAction';
|
public static ID = 'toggleActualExecutionPlanModeAction';
|
||||||
|
|
||||||
private _enableActualPlanLabel = nls.localize('enableActualPlanLabel', "Include Actual Plan");
|
private static readonly EnableActualPlanLabel = nls.localize('enableActualPlanLabel', "Enable Actual Plan");
|
||||||
private _disableActualPlanLabel = nls.localize('disableActualPlanLabel', "Exclude Actual Plan");
|
private static readonly DisableActualPlanLabel = nls.localize('disableActualPlanLabel', "Disable Actual Plan");
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
editor: QueryEditor,
|
editor: QueryEditor,
|
||||||
@@ -369,7 +369,7 @@ export class ToggleActualExecutionPlanModeAction extends QueryTaskbarAction {
|
|||||||
|
|
||||||
private updateLabel(): void {
|
private updateLabel(): void {
|
||||||
// show option to disable actual plan mode if already enabled
|
// show option to disable actual plan mode if already enabled
|
||||||
this.label = this.isActualExecutionPlanMode ? this._disableActualPlanLabel : this._enableActualPlanLabel;
|
this.label = this.isActualExecutionPlanMode ? ToggleActualExecutionPlanModeAction.DisableActualPlanLabel : ToggleActualExecutionPlanModeAction.EnableActualPlanLabel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override async run(): Promise<void> {
|
public override async run(): Promise<void> {
|
||||||
|
|||||||
Reference in New Issue
Block a user