mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-06-11 22:56:33 +00:00
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>
This commit is contained in:
parent
39ab836880
commit
e4beb03a40
@ -45,7 +45,11 @@ export class OpenSketchFiles extends SketchContribution {
|
|||||||
await this.ensureOpened(uri);
|
await this.ensureOpened(uri);
|
||||||
}
|
}
|
||||||
if (focusMainSketchFile) {
|
if (focusMainSketchFile) {
|
||||||
await this.ensureOpened(mainFileUri, true, { mode: 'activate' });
|
await this.ensureOpened(mainFileUri, true, {
|
||||||
|
mode: 'activate',
|
||||||
|
preview: false,
|
||||||
|
counter: 0,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
if (mainFileUri.endsWith('.pde')) {
|
if (mainFileUri.endsWith('.pde')) {
|
||||||
const message = nls.localize(
|
const message = nls.localize(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user