remove unused constructor parameter

This commit is contained in:
Oleg Solomko
2025-04-22 08:51:15 -07:00
parent 3dd15b5da0
commit fca0efbf46
2 changed files with 1 additions and 4 deletions
@@ -902,7 +902,7 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
this.chatEditingSessionWidgetContainer = elements.chatEditingSessionWidgetContainer;
if (this.options.enableImplicitContext) {
this._implicitContext = this._register(
this.instantiationService.createInstance(ChatImplicitContext, undefined),
this.instantiationService.createInstance(ChatImplicitContext),
);
this._register(this._implicitContext.onDidChangeValue(() => this._handleAttachedContextChange()));
@@ -322,13 +322,10 @@ export class ChatImplicitContext extends Disposable implements IChatRequestImpli
}
constructor(
// TODO: @legomushroom - remove the constructor param?
value: Location | URI | undefined,
@IPromptsService private readonly promptsService: IPromptsService,
@IModelService private readonly modelService: IModelService,
) {
super();
this._value = value;
}
setValue(value: Location | URI | undefined, isSelection: boolean, languageId?: string): void {