Skip to content

Commit 8778d70

Browse files
Akos Kittakittaakos
Akos Kitta
authored andcommitted
fix: editor widget resolving when creating new tab
An already opened editor widget can resolve without waiting. Closes #1718 Signed-off-by: Akos Kitta <[email protected]>
1 parent fe3fbb1 commit 8778d70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: arduino-ide-extension/src/browser/contributions/open-sketch-files.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export class OpenSketchFiles extends SketchContribution {
184184
// The editor is expected to be attached to the shell and visible in the UI.
185185
// The deferred promise does not have to wait for the `editorManager#onCreated` event.
186186
// It can resolve earlier.
187-
if (!widget) {
187+
if (widget) {
188188
deferred.resolve(editorWidget);
189189
}
190190
});

0 commit comments

Comments
 (0)