File tree 1 file changed +13
-2
lines changed
integration/vscode/ada/src
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -534,8 +534,19 @@ export class SimpleTaskProvider implements vscode.TaskProvider {
534
534
/**
535
535
* If a test harness project exists, provide a task to build it.
536
536
*/
537
- const harnessPrj = await getGnatTestDriverProjectPath ( ) ;
538
- if ( existsSync ( harnessPrj ) ) {
537
+ const harnessPrj = await getGnatTestDriverProjectPath ( ) . catch (
538
+ /**
539
+ * In case of errors fallback silently to keep providing tasks
540
+ * even in case of errors.
541
+ */
542
+ ( reason ) => {
543
+ logger . error (
544
+ 'Error while querying for the GNATtest test driver project\n' + reason ,
545
+ ) ;
546
+ return undefined ;
547
+ } ,
548
+ ) ;
549
+ if ( harnessPrj && existsSync ( harnessPrj ) ) {
539
550
taskDeclsToOffer . push ( {
540
551
label : TASK_BUILD_TEST_DRIVER ,
541
552
taskDef : {
You can’t perform that action at this time.
0 commit comments