1
- import { injectable } from '@theia/core/shared/inversify' ;
2
- import { MenuModelRegistry } from '@theia/core/lib/common/menu' ;
3
1
import {
4
- CommonFrontendContribution as TheiaCommonFrontendContribution ,
5
2
CommonCommands ,
3
+ CommonFrontendContribution as TheiaCommonFrontendContribution ,
6
4
} from '@theia/core/lib/browser/common-frontend-contribution' ;
7
- import { CommandRegistry } from '@theia/core/lib/common/command' ;
8
5
import type { OnWillStopAction } from '@theia/core/lib/browser/frontend-application' ;
9
- import { KeybindingRegistry } from '@theia/core/lib/browser' ;
10
- import { isOSX } from '@theia/core' ;
6
+ import type { KeybindingRegistry } from '@theia/core/lib/browser/keybinding' ;
7
+ import type { CommandRegistry } from '@theia/core/lib/common/command' ;
8
+ import type { MenuModelRegistry } from '@theia/core/lib/common/menu' ;
9
+ import { isOSX } from '@theia/core/lib/common/os' ;
10
+ import { injectable } from '@theia/core/shared/inversify' ;
11
11
12
12
@injectable ( )
13
13
export class CommonFrontendContribution extends TheiaCommonFrontendContribution {
@@ -25,6 +25,7 @@ export class CommonFrontendContribution extends TheiaCommonFrontendContribution
25
25
CommonCommands . PIN_TAB ,
26
26
CommonCommands . UNPIN_TAB ,
27
27
CommonCommands . NEW_UNTITLED_FILE ,
28
+ CommonCommands . NEW_UNTITLED_TEXT_FILE ,
28
29
] ) {
29
30
commandRegistry . unregisterCommand ( command ) ;
30
31
}
@@ -48,6 +49,7 @@ export class CommonFrontendContribution extends TheiaCommonFrontendContribution
48
49
CommonCommands . ABOUT_COMMAND ,
49
50
CommonCommands . SAVE_WITHOUT_FORMATTING , // Patched for https://github.com/eclipse-theia/theia/pull/8877,
50
51
CommonCommands . NEW_UNTITLED_FILE ,
52
+ CommonCommands . NEW_UNTITLED_TEXT_FILE ,
51
53
] ) {
52
54
registry . unregisterMenuAction ( command ) ;
53
55
}
0 commit comments