File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed
integration/vscode/ada/src Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -385,22 +385,25 @@ export async function addCoverageData(run: vscode.TestRun, covDir: string) {
385
385
}
386
386
387
387
if ( srcUri === undefined ) {
388
+ /**
389
+ * Avoid searching in the object dir because we
390
+ * might land on gnatcov-instrumented versions
391
+ * of the sources.
392
+ */
393
+ const exclude = `${ await adaExtState
394
+ . getObjectDir ( )
395
+ . then ( vscode . workspace . asRelativePath )
396
+ . then ( ( objDir ) => `${ objDir } /**/*` )
397
+ . catch ( ( ) => null ) } `;
398
+
388
399
/**
389
400
* If the prefixes haven't been found yet, or
390
401
* the last prefixes used were not successful,
391
402
* try a workspace lookup of the basename.
392
403
*/
393
404
const found = await vscode . workspace . findFiles (
394
405
`**/${ path . posix . basename ( posixForeignPath ) } ` ,
395
- /**
396
- * Avoid searching in the object dir because we
397
- * might land on gnatcov-instrumented versions
398
- * of the sources.
399
- */
400
- `${ await adaExtState
401
- . getObjectDir ( )
402
- . then ( ( objDir ) => `${ objDir } /**/*` )
403
- . catch ( ( ) => null ) } `,
406
+ exclude ,
404
407
1 ,
405
408
token ,
406
409
) ;
You can’t perform that action at this time.
0 commit comments