forked from microsoft/vscode
-
Notifications
You must be signed in to change notification settings - Fork 445
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly handle errors thrown from renderer while invoking the chat a…
…gent (microsoft#213080) * Properly handle errors thrown from renderer while invoking the chat agent If we throw out of ChatService, then the request can't be canceled and stays "generating" forever * Update snapshot
- Loading branch information
1 parent
549bb94
commit 5db57b0
Showing
4 changed files
with
116 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
81 changes: 81 additions & 0 deletions
81
src/vs/workbench/contrib/chat/test/common/__snapshots__/ChatService_sendRequest_fails.0.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
{ | ||
requesterUsername: "test", | ||
requesterAvatarIconUri: undefined, | ||
responderUsername: "", | ||
responderAvatarIconUri: undefined, | ||
initialLocation: "panel", | ||
welcomeMessage: undefined, | ||
requests: [ | ||
{ | ||
message: { | ||
parts: [ | ||
{ | ||
range: { | ||
start: 0, | ||
endExclusive: 28 | ||
}, | ||
editorRange: { | ||
startLineNumber: 1, | ||
startColumn: 1, | ||
endLineNumber: 1, | ||
endColumn: 29 | ||
}, | ||
agent: { | ||
name: "ChatProviderWithUsedContext", | ||
id: "ChatProviderWithUsedContext", | ||
extensionId: { | ||
value: "nullExtensionDescription", | ||
_lower: "nullextensiondescription" | ||
}, | ||
extensionPublisherId: "", | ||
publisherDisplayName: "", | ||
extensionDisplayName: "", | ||
locations: [ "panel" ], | ||
metadata: { }, | ||
slashCommands: [ ] | ||
}, | ||
kind: "agent" | ||
}, | ||
{ | ||
range: { | ||
start: 28, | ||
endExclusive: 41 | ||
}, | ||
editorRange: { | ||
startLineNumber: 1, | ||
startColumn: 29, | ||
endLineNumber: 1, | ||
endColumn: 42 | ||
}, | ||
text: " test request", | ||
kind: "text" | ||
} | ||
], | ||
text: "@ChatProviderWithUsedContext test request" | ||
}, | ||
variableData: { variables: [ ] }, | ||
response: [ ], | ||
result: { errorDetails: { message: "No activated agent with id \"ChatProviderWithUsedContext\"" } }, | ||
followups: undefined, | ||
isCanceled: false, | ||
vote: undefined, | ||
agent: { | ||
name: "ChatProviderWithUsedContext", | ||
id: "ChatProviderWithUsedContext", | ||
extensionId: { | ||
value: "nullExtensionDescription", | ||
_lower: "nullextensiondescription" | ||
}, | ||
extensionPublisherId: "", | ||
publisherDisplayName: "", | ||
extensionDisplayName: "", | ||
locations: [ "panel" ], | ||
metadata: { }, | ||
slashCommands: [ ] | ||
}, | ||
slashCommand: undefined, | ||
usedContext: undefined, | ||
contentReferences: [ ] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters