We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
showCoverage
1 parent 26b6015 commit 18f4b4bCopy full SHA for 18f4b4b
src/extension.ts
@@ -162,6 +162,8 @@ export async function activate(context: ExtensionContext) {
162
coverages: CoverageCollection,
163
workspaceFolder: string
164
) {
165
+ if (!showCoverage) return; // do nothing
166
+
167
for (const coverage of coverages) {
168
if (coverage && coverage.lines && coverage.lines.details) {
169
const fileName = !isAbsolute(coverage.file)
@@ -188,7 +190,6 @@ export async function activate(context: ExtensionContext) {
188
190
189
191
const currentFile = window.activeTextEditor?.document.uri.fsPath;
192
const diagnosticsForFiles: Diagnostic[] = [];
- if (!showCoverage) return diagnosticsForFiles;
193
194
for (const detail of details) {
195
const line = detail.line - 1;
0 commit comments