mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-31 03:07:50 +01:00
always cancel looping cue
This commit is contained in:
@@ -407,11 +407,12 @@ export class ChatWidget extends Disposable implements IChatWidget {
|
||||
if (result) {
|
||||
this.inputPart.acceptInput(query);
|
||||
result.responseCompletePromise.then(async () => {
|
||||
|
||||
const responses = this.viewModel?.getItems().filter(isResponseVM);
|
||||
const lastResponse = responses?.[responses.length - 1];
|
||||
this._chatAccessibilityService.acceptResponse(lastResponse);
|
||||
});
|
||||
} else {
|
||||
this._chatAccessibilityService.acceptResponse();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -518,7 +519,7 @@ export class ChatWidgetService implements IChatWidgetService {
|
||||
}
|
||||
|
||||
|
||||
const CHAT_RESPONSE_PENDING_AUDIO_CUE_LOOP_MS = 7000;
|
||||
const CHAT_RESPONSE_PENDING_AUDIO_CUE_LOOP_MS = 5000;
|
||||
export class ChatAccessibilityService extends Disposable implements IChatAccessibilityService {
|
||||
|
||||
declare readonly _serviceBrand: undefined;
|
||||
|
||||
Reference in New Issue
Block a user