aligned api visibility with theia.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta 2020-08-01 16:08:13 +02:00
parent 3d55aaa875
commit fc09dc3613

View File

@ -34,7 +34,7 @@ export class ApplicationShell extends TheiaApplicationShell {
super.setLayoutData(layoutData);
}
track(widget: Widget): void {
protected track(widget: Widget): void {
if (!this.editorMode.proMode && this.sketch && widget instanceof EditorWidget) {
if (Sketch.isInSketch(widget.editor.uri, this.sketch)) {
widget.title.closable = false;
@ -43,7 +43,6 @@ export class ApplicationShell extends TheiaApplicationShell {
super.track(widget);
}
async saveAll(): Promise<void> {
await super.saveAll();
await this.commandService.executeCommand(SaveAsSketch.Commands.SAVE_AS_SKETCH.id, { execOnlyIfTemp: true, openAfterMove: true });