Skip to content

Commit 33b7881

Browse files
change to use
1 parent ada0d2f commit 33b7881

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
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.EnableLegacyCodeLens
109+
if (_configurationService.CurrentSettings.Pester.UseLegacyCodeLens
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-
EnableLegacyCodeLens = settings.EnableLegacyCodeLens;
374+
UseLegacyCodeLens = settings.UseLegacyCodeLens;
375375
}
376376

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

383383
/// <summary>

test/PowerShellEditorServices.Test.E2E/LanguageServerProtocolMessageTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ public async Task CanSendPesterLegacyCodeLensRequest()
557557
{
558558
""powershell"": {
559559
""pester"": {
560-
""enableLegacyCodeLens"": true
560+
""useLegacyCodeLens"": true
561561
}
562562
}
563563
}
@@ -616,7 +616,7 @@ public async Task CanSendPesterCodeLensRequest()
616616
{
617617
""powershell"": {
618618
""pester"": {
619-
""enableLegacyCodeLens"": false
619+
""useLegacyCodeLens"": false
620620
}
621621
}
622622
}

0 commit comments

Comments
 (0)