mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-13 06:16:33 +00:00
Corrected the docs.
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
parent
f359843635
commit
b4848f62fa
@ -33,11 +33,9 @@ export class EditorMode implements FrontendApplicationContribution {
|
|||||||
shell.closeTabs(area, ({ owner }) => !(owner instanceof EditorWidget || owner instanceof OutputWidget));
|
shell.closeTabs(area, ({ owner }) => !(owner instanceof EditorWidget || owner instanceof OutputWidget));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// No `else`. We initialize the views (if required) in `this.onStart`.
|
// `storeLayout` has a sync API but the implementation is async, we store the layout manually before we reload the page.
|
||||||
// `storeLayout` is not invoked in electron when refreshing the browser window: https://github.com/eclipse-theia/theia/issues/6530
|
// See: https://github.com/eclipse-theia/theia/issues/6579
|
||||||
// We store the state manually.
|
// XXX: hack instead of injecting the `ArduinoShellLayoutRestorer` we have to retrieve it from the application to avoid DI cycle.
|
||||||
// XXX: hack instead of injecting the `ArduinoShellLayoutRestorer` we have to retrieve it from the
|
|
||||||
// application to avoid DI cycle.
|
|
||||||
const layoutRestorer = (this.app as any).layoutRestorer as ArduinoShellLayoutRestorer
|
const layoutRestorer = (this.app as any).layoutRestorer as ArduinoShellLayoutRestorer
|
||||||
await layoutRestorer.storeLayoutAsync(this.app);
|
await layoutRestorer.storeLayoutAsync(this.app);
|
||||||
window.location.reload(true);
|
window.location.reload(true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user