Skip to content

Commit 831ab73

Browse files
author
guqiankun.gqk
committed
chore: 移除构造函数
1 parent bc735af commit 831ab73

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

packages/core/src/client/override/monacoContextKeyService.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
1-
import { Autowired, Injectable } from '@opensumi/di';
1+
import { Injectable } from '@opensumi/di';
22
import { IContextKeyService } from '@opensumi/ide-core-browser';
3-
import { IConfigurationService } from '@opensumi/monaco-editor-core/esm/vs/platform/configuration/common/configuration';
43
import { 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()
86
export 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
}

0 commit comments

Comments
 (0)