Reinstante keybinding service check
This commit is contained in:
parent
b8a7a8931f
commit
31c73988b9
1 changed files with 6 additions and 2 deletions
|
@ -153,7 +153,7 @@ function createAriaDomNode() {
|
|||
*/
|
||||
export class StandaloneCodeEditor extends CodeEditorWidget implements IStandaloneCodeEditor {
|
||||
|
||||
private readonly _standaloneKeybindingService: StandaloneKeybindingService;
|
||||
private readonly _standaloneKeybindingService: StandaloneKeybindingService | null;
|
||||
|
||||
constructor(
|
||||
domElement: HTMLElement,
|
||||
|
@ -176,7 +176,11 @@ export class StandaloneCodeEditor extends CodeEditorWidget implements IStandalon
|
|||
);
|
||||
super(domElement, options, {}, instantiationService, codeEditorService, commandService, contextKeyService, themeService, notificationService, accessibilityService);
|
||||
|
||||
this._standaloneKeybindingService = <StandaloneKeybindingService>keybindingService;
|
||||
if (keybindingService instanceof StandaloneKeybindingService) {
|
||||
this._standaloneKeybindingService = keybindingService;
|
||||
} else {
|
||||
this._standaloneKeybindingService = null;
|
||||
}
|
||||
|
||||
// Create the ARIA dom node as soon as the first editor is instantiated
|
||||
createAriaDomNode();
|
||||
|
|
Loading…
Reference in a new issue