Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e4beb03

Browse filesBrowse 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
Copy full SHA for e4beb03

File tree

1 file changed

+5
-1
lines changed
Filter options

1 file changed

+5
-1
lines changed

‎arduino-ide-extension/src/browser/contributions/open-sketch-files.ts

Copy file name to clipboardExpand all lines: arduino-ide-extension/src/browser/contributions/open-sketch-files.ts
+5-1Lines changed: 5 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.