Skip to content

Commit

Permalink
fix: really suppress error
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Mangeonjean committed Feb 13, 2024
1 parent 366772f commit 9039bdd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/vscodeParts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ function createPart (part: Parts, location: ViewContainerLocation | null) {
element.style.flex = '1'
element.style.minWidth = '0'

initializePromise.then(() => {
attachPart(part, element)
}, () => {
// ignore, probably part not registered
})
initializePromise
.then(() => attachPart(part, element))
.catch(() => {
// ignore, probably part not registered
})

let counter = 0

Expand Down

0 comments on commit 9039bdd

Please sign in to comment.