File tree 1 file changed +10
-0
lines changed
arduino-ide-extension/src/browser
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ import { SaveAsSketch } from './contributions/save-as-sketch';
70
70
import { SketchbookWidgetContribution } from './widgets/sketchbook/sketchbook-widget-contribution' ;
71
71
import { IDEUpdaterDialog } from './dialogs/ide-updater/ide-updater-dialog' ;
72
72
import { IDEUpdater } from '../common/protocol/ide-updater' ;
73
+ import { FileSystemFrontendContribution } from '@theia/filesystem/lib/browser/filesystem-frontend-contribution' ;
73
74
74
75
const INIT_LIBS_AND_PACKAGES = 'initializedLibsAndPackages' ;
75
76
export const SKIP_IDE_VERSION = 'skipIDEVersion' ;
@@ -159,6 +160,9 @@ export class ArduinoFrontendContribution
159
160
@inject ( LocalStorageService )
160
161
protected readonly localStorageService : LocalStorageService ;
161
162
163
+ @inject ( FileSystemFrontendContribution )
164
+ protected readonly fileSystemFrontendContribution : FileSystemFrontendContribution ;
165
+
162
166
@inject ( IDEUpdater )
163
167
protected readonly updater : IDEUpdater ;
164
168
@@ -337,6 +341,12 @@ export class ArduinoFrontendContribution
337
341
} ) ;
338
342
339
343
app . shell . leftPanelHandler . removeBottomMenu ( 'settings-menu' ) ;
344
+
345
+ this . fileSystemFrontendContribution . onDidChangeEditorFile ( e => {
346
+ if ( e . type === FileChangeType . DELETED ) {
347
+ e . editor . close ( ) ;
348
+ }
349
+ } ) ;
340
350
}
341
351
342
352
onStop ( ) : void {
You can’t perform that action at this time.
0 commit comments