From 9039bddf6c2763f40fa07f717b645e40e6286721 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Mangeonjean?= Date: Tue, 13 Feb 2024 20:07:59 +0100 Subject: [PATCH] fix: really suppress error --- src/vscodeParts.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/vscodeParts.tsx b/src/vscodeParts.tsx index fa82af4..b13499e 100644 --- a/src/vscodeParts.tsx +++ b/src/vscodeParts.tsx @@ -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