Johannes Rieken
2024-08-21 12:28:28 +02:00
committed by GitHub
parent 00c8fd7363
commit 76d6785781
4 changed files with 15 additions and 14 deletions

View File

@@ -88,7 +88,7 @@ export class InlineChatSessionServiceImpl implements IInlineChatSessionService {
this._sessions.clear();
}
async createSession(editor: IActiveCodeEditor, options: { editMode: EditMode; wholeRange?: Range; session?: Session }, token: CancellationToken): Promise<Session | undefined> {
async createSession(editor: IActiveCodeEditor, options: { editMode: EditMode; headless?: boolean; wholeRange?: Range; session?: Session }, token: CancellationToken): Promise<Session | undefined> {
const agent = this._chatAgentService.getDefaultAgent(ChatAgentLocation.Editor);
@@ -198,6 +198,7 @@ export class InlineChatSessionServiceImpl implements IInlineChatSessionService {
const session = new Session(
options.editMode,
options.headless ?? false,
targetUri,
textModel0,
textModelN,