Skip to content

Commit 27ad13d

Browse files
committed
fix: suppress view reveal exception
1 parent 2def5d7 commit 27ad13d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/service/post/post-list-view.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ export async function revealPostListItem(
2323
if (post === undefined) return
2424

2525
const view = extTreeViews.visiblePostList()
26-
await view?.reveal(post, options)
26+
27+
try {
28+
await view?.reveal(post, options)
29+
} catch (ex) {
30+
console.log(ex)
31+
}
2732
}
2833

2934
export function getListState() {

0 commit comments

Comments
 (0)