Skip to content

Commit 414606b

Browse files
authored
Don't throw if view doesn't exist when visibility false (microsoft#191781)
1 parent 6b49d15 commit 414606b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vs/workbench/api/common/extHostTreeViews.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@ export class ExtHostTreeViews implements ExtHostTreeViewsShape {
246246
$setVisible(treeViewId: string, isVisible: boolean): void {
247247
const treeView = this.treeViews.get(treeViewId);
248248
if (!treeView) {
249+
if (!isVisible) {
250+
return;
251+
}
249252
throw new NoTreeViewError(treeViewId);
250253
}
251254
treeView.setVisible(isVisible);

0 commit comments

Comments
 (0)