Skip to content

Commit

Permalink
Add trycatch to check the error
Browse files Browse the repository at this point in the history
  • Loading branch information
ljmotta committed Dec 13, 2024
1 parent a41ead3 commit 40002ab
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,11 @@ export class VSCodeTestHelper {
throw new Error("Invalid path: " + absoluteFsPath);
}
console.log("DEBUG VS CODE -> SECTION VIEW");
this.workspaceSectionView = await this.sidebarView.getContent().getSection(folderName);
try {
this.workspaceSectionView = await this.sidebarView.getContent().getSection(folderName);
} catch (error) {
console.log("DEBUG VS CODE -> SECTION VIEW ERROR", error);
}

console.log("DEBUG VS CODE -> RETURNING");
return this.sidebarView;
Expand Down

0 comments on commit 40002ab

Please sign in to comment.