diff --git a/package.json b/package.json index d1e22eaa0c..8da1b1b9a6 100644 --- a/package.json +++ b/package.json @@ -1008,8 +1008,8 @@ "properties": { "powershell.pester.useLegacyCodeLens": { "type": "boolean", - "default": true, - "markdownDescription": "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." + "default": false, + "markdownDescription": "Use the legacy CodeLens compatible with Pester 4 (only shows `Run Tests` on `Describe` blocks). When disabled (the default), `Run Tests` is shown on all `It`, `Describe` and `Context` blocks for Pester 5 and newer." }, "powershell.pester.codeLens": { "type": "boolean", diff --git a/src/features/PesterTests.ts b/src/features/PesterTests.ts index df6e1abdfa..d344e9f066 100644 --- a/src/features/PesterTests.ts +++ b/src/features/PesterTests.ts @@ -149,7 +149,7 @@ export class PesterTestsFeature implements vscode.Disposable { const useLegacyCodeLens = pesterConfig.get( "useLegacyCodeLens", - true, + false, ); if (!useLegacyCodeLens) { launchConfig.args.push("-MinimumVersion5");