add IChatModel#initialLocation (#209930)

This represents the location in which chat started, it also comes with `startSession(location)`. Finally, pass the location along when asking for sample questions
This commit is contained in:
Johannes Rieken
2024-04-09 12:02:29 +02:00
committed by GitHub
parent e2f29f7662
commit abb831f432
21 changed files with 58 additions and 47 deletions

View File

@@ -342,7 +342,7 @@ export class InlineChatSessionServiceImpl implements IInlineChatSessionService {
return undefined;
}
const chatModel = this._chatService.startSession(token);
const chatModel = this._chatService.startSession(ChatAgentLocation.Editor, token);
if (!chatModel) {
this._logService.trace('[IE] NO chatModel found');
return undefined;