@@ -390,20 +390,21 @@ export async function addCoverageData(run: vscode.TestRun, covDir: string) {
390
390
* avoid associating coverage data with the
391
391
* instrumented sources, so we exclude any paths
392
392
* containing the special directory
393
- * `gnatcov-instr`. Ideally it would have been nice
394
- * to exclude precisely `<obj-dir>/gnatcov-instr`
395
- * but that would need to be repeated for each obj
396
- * dir of each project in the closure. As we don't
397
- * have access to that information, we ignore all
398
- * paths containing a `gnatcov-instr` component.
393
+ * `*gnatcov-instr`. Ideally it would have been
394
+ * nice to exclude precisely
395
+ * `<obj-dir>/<prj-name>-gnatcov-instr` but that
396
+ * would need to be computed for each project in
397
+ * the closure. As we don't have access to that
398
+ * information, we ignore all paths containing a
399
+ * `*gnatcov-instr` component.
399
400
*
400
401
* Note that a previous version excluded the entire
401
402
* object dir which did not work well on projects
402
403
* that use '.' as the object dir. In that case
403
404
* excluding the object dir would exclude the
404
405
* entire workspace and prevent finding any files.
405
406
*/
406
- const exclude = `**/gnatcov-instr/**/*` ;
407
+ const exclude = `**/* gnatcov-instr/**/*` ;
407
408
408
409
/**
409
410
* If the prefixes haven't been found yet, or
0 commit comments