Skip to content

Commit f04d06e

Browse files
nohwndTylerLeonhardt
authored andcommitted
Rename option to EnableLegacyCodeLens
1 parent 6f4b55c commit f04d06e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/PowerShellEditorServices/Services/CodeLens/PesterCodeLensProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public CodeLens[] ProvideCodeLenses(ScriptFile scriptFile)
106106
continue;
107107
}
108108

109-
if (!_configurationService.CurrentSettings.Pester.Pester5CodeLens
109+
if (!_configurationService.CurrentSettings.Pester.EnableLegacyCodeLens
110110
&& pesterSymbol.Command != PesterCommandType.Describe)
111111
{
112112
continue;

src/PowerShellEditorServices/Services/Workspace/LanguageServerSettings.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,13 +371,13 @@ public PesterSettings()
371371

372372
public PesterSettings(PesterSettings settings)
373373
{
374-
Pester5CodeLens = settings.Pester5CodeLens;
374+
EnableLegacyCodeLens = settings.EnableLegacyCodeLens;
375375
}
376376

377377
/// <summary>
378378
/// Whether integration features specific to Pester v5 are enabled
379379
/// </summary>
380-
public bool Pester5CodeLens { get; set; }
380+
public bool EnableLegacyCodeLens { get; set; }
381381
}
382382

383383
/// <summary>

0 commit comments

Comments
 (0)