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) {
385385 }
386386
387387 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+
388399 /**
389400 * If the prefixes haven't been found yet, or
390401 * the last prefixes used were not successful,
391402 * try a workspace lookup of the basename.
392403 */
393404 const found = await vscode . workspace . findFiles (
394405 `**/${ 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 ,
404407 1 ,
405408 token ,
406409 ) ;
You can’t perform that action at this time.
0 commit comments