From ce12736db1ff01bf89bc3d2700d9b69f2919abde Mon Sep 17 00:00:00 2001 From: John Date: Sun, 29 Sep 2024 13:49:30 +0800 Subject: [PATCH] fix: back service register completion not work (#4054) --- .../intelligent-completions.controller.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/ai-native/src/browser/contrib/intelligent-completions/intelligent-completions.controller.ts b/packages/ai-native/src/browser/contrib/intelligent-completions/intelligent-completions.controller.ts index c00ed8e429..3f2a76176f 100644 --- a/packages/ai-native/src/browser/contrib/intelligent-completions/intelligent-completions.controller.ts +++ b/packages/ai-native/src/browser/contrib/intelligent-completions/intelligent-completions.controller.ts @@ -63,11 +63,6 @@ export class IntelligentCompletionsController extends BaseAIMonacoEditorControll public mount(): IDisposable { this.handlerAlwaysVisiblePreference(); - const provider = this.intelligentCompletionsRegistry.getProvider(); - if (!provider) { - return this; - } - this.whenMultiLineEditsVisibleDisposable = new Disposable(); this.multiLineDecorationModel = new MultiLineDecorationModel(this.monacoEditor); this.additionsDeletionsDecorationModel = new AdditionsDeletionsDecorationModel(this.monacoEditor);