@@ -39,13 +39,14 @@ import {
39
39
import { MessageService } from '@theia/core/lib/common/message-service' ;
40
40
import URI from '@theia/core/lib/common/uri' ;
41
41
import {
42
+ EditorCommands ,
42
43
EditorMainMenu ,
43
44
EditorManager ,
44
45
EditorOpenerOptions ,
45
46
} from '@theia/editor/lib/browser' ;
46
47
import { ProblemContribution } from '@theia/markers/lib/browser/problem/problem-contribution' ;
47
48
import { MonacoMenus } from '@theia/monaco/lib/browser/monaco-menu' ;
48
- import { FileNavigatorContribution } from '@theia/navigator/lib/browser/navigator-contribution' ;
49
+ import { FileNavigatorCommands , FileNavigatorContribution } from '@theia/navigator/lib/browser/navigator-contribution' ;
49
50
import { OutlineViewContribution } from '@theia/outline-view/lib/browser/outline-view-contribution' ;
50
51
import { OutputContribution } from '@theia/output/lib/browser/output-contribution' ;
51
52
import { ScmContribution } from '@theia/scm/lib/browser/scm-contribution' ;
@@ -344,14 +345,14 @@ export class ArduinoFrontendContribution
344
345
app . shell . leftPanelHandler . removeBottomMenu ( 'settings-menu' ) ;
345
346
346
347
this . fileSystemFrontendContribution . onDidChangeEditorFile ( e => {
347
- if ( e . type === FileChangeType . DELETED ) {
348
- const editorWidget = e . editor ;
349
- if ( SaveableWidget . is ( editorWidget ) ) {
350
- editorWidget . closeWithoutSaving ( ) ;
351
- } else {
352
- editorWidget . close ( ) ;
353
- }
348
+ if ( e . type === FileChangeType . DELETED ) {
349
+ const editorWidget = e . editor ;
350
+ if ( SaveableWidget . is ( editorWidget ) ) {
351
+ editorWidget . closeWithoutSaving ( ) ;
352
+ } else {
353
+ editorWidget . close ( ) ;
354
354
}
355
+ }
355
356
} ) ;
356
357
}
357
358
@@ -485,6 +486,18 @@ export class ArduinoFrontendContribution
485
486
}
486
487
} ,
487
488
} ) ;
489
+
490
+ for ( const command of [
491
+ EditorCommands . SPLIT_EDITOR_DOWN ,
492
+ EditorCommands . SPLIT_EDITOR_LEFT ,
493
+ EditorCommands . SPLIT_EDITOR_RIGHT ,
494
+ EditorCommands . SPLIT_EDITOR_UP ,
495
+ EditorCommands . SPLIT_EDITOR_VERTICAL ,
496
+ EditorCommands . SPLIT_EDITOR_HORIZONTAL ,
497
+ FileNavigatorCommands . REVEAL_IN_NAVIGATOR
498
+ ] ) {
499
+ registry . unregisterCommand ( command ) ;
500
+ }
488
501
}
489
502
490
503
registerMenus ( registry : MenuModelRegistry ) {
0 commit comments