You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# If we still don't have an imported Pester module, that is (most likely) because Pester is not installed.
69
-
Write-Warning"Failed to import Pester$(if ($MinimumVersion5){ $versionMessage }). You must install Pester module to run or debug Pester tests."
70
-
Write-Warning"You can install Pester by executing: Install-Module Pester $(if ($MinimumVersion5) {"-MinimumVersion 5.0.0" }) -Scope CurrentUser -Force"
74
+
Write-Warning"Failed to import Pester. You must install Pester module to run or debug Pester tests."
75
+
Write-Warning"$(if ($MinimumVersion5) {"Recommended version to install is Pester 5.0.0 or newer. "})You can install Pester by executing: Install-Module Pester$(if ($MinimumVersion5) {" -MinimumVersion 5.0.0" }) -Scope CurrentUser -Force"
if ($MinimumVersion5-and$pesterModule.Version-lt"5.0.0") {
82
-
Write-Warning"Pester 5.0.0 or newer is required because setting PowerShell > Pester: Enable Legacy Code Lens is disabled, but Pester $($pesterModule.Version) is loaded. Some of the code lense features might not work as expected."
87
+
Write-Warning"Pester 5.0.0 or newer is required because setting PowerShell > Pester: Use Legacy Code Lens is disabled, but Pester $($pesterModule.Version) is loaded. Some of the code lense features might not work as expected."
Copy file name to clipboardExpand all lines: package.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -761,10 +761,10 @@
761
761
"default": null,
762
762
"description": "An array of strings that enable experimental features in the PowerShell extension."
763
763
},
764
-
"powershell.pester.enableLegacyCodeLens": {
764
+
"powershell.pester.useLegacyCodeLens": {
765
765
"type": "boolean",
766
766
"default": true,
767
-
"description": "Enable code lense that is compatible with Pester 4. Disabling this will show 'Run Tests' on all It, Describe and Context blocks, and will correctly work only with Pester 5 and newer."
767
+
"description": "Use code lense that is compatible with Pester 4. Disabling this will show 'Run Tests' on all It, Describe and Context blocks, and will correctly work only with Pester 5 and newer."
0 commit comments