mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
- getDefaultAgent takes chat agent location
- forward agent location to more places - updated snapshots
This commit is contained in:
@@ -58,6 +58,10 @@ class BridgeAgent implements IChatAgentImplementation {
|
||||
|
||||
async invoke(request: IChatAgentRequest, progress: (part: IChatProgress) => void, history: IChatAgentHistoryEntry[], token: CancellationToken): Promise<IChatAgentResult> {
|
||||
|
||||
if (token.isCancellationRequested) {
|
||||
return {};
|
||||
}
|
||||
|
||||
const data = this._findSessionDataByRequest(request);
|
||||
|
||||
if (!data) {
|
||||
@@ -91,7 +95,7 @@ class BridgeAgent implements IChatAgentImplementation {
|
||||
// }
|
||||
if (data.slashCommand) {
|
||||
const command = this._data.slashCommands.find(c => c.name === data.slashCommand);
|
||||
progress({ kind: 'agentDetection', detected: true, agentId: this._data.id, command });
|
||||
progress({ kind: 'agentDetection', agentId: this._data.id, command });
|
||||
}
|
||||
if (data.markdownFragment) {
|
||||
progress({ kind: 'markdownContent', content: new MarkdownString(data.markdownFragment) });
|
||||
|
||||
Reference in New Issue
Block a user