Skip to content

Commit a2fd212

Browse files
authored
fix: catch promise failures in the service
1 parent 226f0a2 commit a2fd212

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ export function consumeOutlineProvider(provider: OutlineProvider): Disposable {
6262
// or if the editor changes later once outline is visible
6363
// so we need to have an outline for the current editor
6464
// the following updates rely on the visibility
65-
getOutline()
65+
getOutline().catch((err) => {
66+
throw err
67+
})
6668
return prividerDisposable
6769
}
6870

0 commit comments

Comments
 (0)