mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
fix hideOnRequest mode so that it doesn't show the inline chat for "good" responses (#270386)
Looks like `ChatResponse#onDidChange` fires with a modified response array after completion...
This commit is contained in:
@@ -1417,6 +1417,8 @@ export class InlineChatController2 implements IEditorContribution {
|
||||
return;
|
||||
}
|
||||
|
||||
responseListener.value = undefined; // listen only ONCE
|
||||
|
||||
const shouldShow = response.isCanceled // cancelled
|
||||
|| response.result?.errorDetails // errors
|
||||
|| !response.response.value.find(part => part.kind === 'textEditGroup'
|
||||
|
||||
Reference in New Issue
Block a user