ATL-730: Refactored the debug extension.

Wired in the `cortex.debug` VSXE.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta
2020-12-08 15:22:21 +01:00
committed by Akos Kitta
parent 4d5a046aa8
commit e7b1a27401
14 changed files with 177 additions and 57 deletions

View File

@@ -68,6 +68,9 @@ export class ApplicationShell extends TheiaApplicationShell {
}
async saveAll(): Promise<void> {
if (!this.canSaveAll()) { // This is a quick fix for not saving the editor when there are no dirty editors.
return; // https://github.com/bcmi-labs/arduino-editor/pull/172#issuecomment-741831888
}
if (this.connectionStatusService.currentStatus === ConnectionStatus.OFFLINE) {
this.messageService.error('Could not save the sketch. Please copy your unsaved work into your favorite text editor, and restart the IDE.');
return; // Theia does not reject on failed save: https://github.com/eclipse-theia/theia/pull/8803