File tree Expand file tree Collapse file tree
packages/core/src/client/override Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { Autowired , Injectable } from '@opensumi/di' ;
1+ import { Injectable } from '@opensumi/di' ;
22import { IContextKeyService } from '@opensumi/ide-core-browser' ;
3- import { IConfigurationService } from '@opensumi/monaco-editor-core/esm/vs/platform/configuration/common/configuration' ;
43import { MonacoContextKeyService as BaseContextKeyService } from '@opensumi/ide-monaco/lib/browser/monaco.context-key.service' ;
5- import { ContextKeyService } from '@opensumi/monaco-editor-core/esm/vs/platform/contextkey/browser/contextKeyService' ;
64// TODO 暂时此处覆盖其 dispose 防止报错
75@Injectable ( )
86export class MonacoContextKeyService extends BaseContextKeyService implements IContextKeyService {
9- @Autowired ( IConfigurationService )
10- protected readonly configurationService : IConfigurationService ;
11-
12- public readonly contextKeyService : ContextKeyService ;
13-
14- constructor ( ) {
15- super ( ) ;
16- this . contextKeyService = new ContextKeyService ( this . configurationService ) ;
17- this . listenToContextChanges ( ) ;
18- }
197 dispose ( ) : void {
208 // 覆盖MonacoContextKeyService
219 }
You can’t perform that action at this time.
0 commit comments