fix init order

This commit is contained in:
BeniBenj
2025-11-24 12:31:59 +01:00
parent 35e9acc4cd
commit b7a0126d99

View File

@@ -76,7 +76,7 @@ export class InlineCompletionsSource extends Disposable {
public readonly inlineCompletions = this._state.map(this, v => v.inlineCompletions);
public readonly suggestWidgetInlineCompletions = this._state.map(this, v => v.suggestWidgetInlineCompletions);
private readonly _renameProcessor = this._register(this._instantiationService.createInstance(RenameSymbolProcessor));
private readonly _renameProcessor: RenameSymbolProcessor;
private _completionsEnabled: Record<string, boolean> | undefined = undefined;
@@ -101,6 +101,8 @@ export class InlineCompletionsSource extends Disposable {
'editor.inlineSuggest.logFetch.commandId'
));
this._renameProcessor = this._store.add(this._instantiationService.createInstance(RenameSymbolProcessor));
this.clearOperationOnTextModelChange.recomputeInitiallyAndOnChange(this._store);
const enablementSetting = product.defaultChatAgent?.completionsEnablementSetting ?? undefined;