Skip to content

Commit 4964cea

Browse files
Add setting to control existence of Pester CodeLens (#3613)
This allows users to disable the extension's built-in Pester CodeLens so as to avoid duplicate lenses if they are using the Pester test adapter. Co-authored-by: Andy Schwartzmeyer <[email protected]>
1 parent 34f1ca4 commit 4964cea

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

package.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,12 @@
840840
"powershell.pester.useLegacyCodeLens": {
841841
"type": "boolean",
842842
"default": true,
843-
"description": "Use code lens 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."
843+
"description": "Use a CodeLens 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."
844+
},
845+
"powershell.pester.codeLens": {
846+
"type": "boolean",
847+
"default": true,
848+
"description": "This setting controls the appearance of the 'Run Tests' and 'Debug Tests' CodeLenses that appears above Pester tests."
844849
},
845850
"powershell.pester.outputVerbosity": {
846851
"type": "string",

0 commit comments

Comments
 (0)