mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user