Skip to content

Commit e4beb03

Browse files
Akos Kittakittaakos
Akos Kitta
authored andcommitted
fix: incorrect editor widget key calculation
to avoid duplicate editor tabs when opening a sketch with no previously saved workbench layout Closes #1791 Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
1 parent 39ab836 commit e4beb03

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ export class OpenSketchFiles extends SketchContribution {
4545
await this.ensureOpened(uri);
4646
}
4747
if (focusMainSketchFile) {
48-
await this.ensureOpened(mainFileUri, true, { mode: 'activate' });
48+
await this.ensureOpened(mainFileUri, true, {
49+
mode: 'activate',
50+
preview: false,
51+
counter: 0,
52+
});
4953
}
5054
if (mainFileUri.endsWith('.pde')) {
5155
const message = nls.localize(

0 commit comments

Comments
 (0)