File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
integration/vscode/ada/src Expand file tree Collapse file tree 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 {
534534 /**
535535 * If a test harness project exists, provide a task to build it.
536536 */
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 ) ) {
539550 taskDeclsToOffer . push ( {
540551 label : TASK_BUILD_TEST_DRIVER ,
541552 taskDef : {
You can’t perform that action at this time.
0 commit comments