We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fdb899 commit 19de039Copy full SHA for 19de039
1 file changed
packages/core/src/client/override/monacoContextKeyService.ts
@@ -12,7 +12,8 @@ export class MonacoContextKeyService extends BaseContextKeyService implements IC
12
// TODO 不放window
13
// ContextKeyService 全局唯一 组件重置后需重新绑定
14
this.contextKeyService =
15
- (window as any)._alex.ContextKeyService || new ContextKeyService(this.configurationService);
+ (window as any)?._alex?.ContextKeyService || new ContextKeyService(this.configurationService);
16
+ (window as any)._alex = {};
17
(window as any)._alex.ContextKeyService = this.contextKeyService;
18
}
19
0 commit comments