diff --git a/src/sql/workbench/contrib/query/browser/queryActions.ts b/src/sql/workbench/contrib/query/browser/queryActions.ts index 9dfe4a3757..ae3140ff89 100644 --- a/src/sql/workbench/contrib/query/browser/queryActions.ts +++ b/src/sql/workbench/contrib/query/browser/queryActions.ts @@ -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 {