diff --git a/packages/vscode-extension-common-test-helpers/src/VSCodeTestHelper.ts b/packages/vscode-extension-common-test-helpers/src/VSCodeTestHelper.ts index abdf548c4bd..b0fa15dd0f6 100644 --- a/packages/vscode-extension-common-test-helpers/src/VSCodeTestHelper.ts +++ b/packages/vscode-extension-common-test-helpers/src/VSCodeTestHelper.ts @@ -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;