mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 01:25:36 -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 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> {
|
||||
|
||||
Reference in New Issue
Block a user