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:
Johannes Rieken
2025-10-08 18:10:41 +02:00
committed by GitHub
parent 0b3517b09d
commit b1e37822fb

View File

@@ -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'