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:
Lewis Sanchez
2022-06-22 14:59:13 -07:00
committed by GitHub
parent a3cad2378c
commit 800f2cebb5

View File

@@ -343,8 +343,8 @@ export class ToggleActualExecutionPlanModeAction extends QueryTaskbarAction {
public static EnabledClass = 'enabledActualExecutionPlan';
public static ID = 'toggleActualExecutionPlanModeAction';
private _enableActualPlanLabel = nls.localize('enableActualPlanLabel', "Include Actual Plan");
private _disableActualPlanLabel = nls.localize('disableActualPlanLabel', "Exclude Actual Plan");
private static readonly EnableActualPlanLabel = nls.localize('enableActualPlanLabel', "Enable Actual Plan");
private static readonly DisableActualPlanLabel = nls.localize('disableActualPlanLabel', "Disable Actual Plan");
constructor(
editor: QueryEditor,
@@ -369,7 +369,7 @@ export class ToggleActualExecutionPlanModeAction extends QueryTaskbarAction {
private updateLabel(): void {
// 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> {