Skip to content

Commit 1404ba5

Browse files
authored
voice - keep keyword activation alive after keyword is recognized (microsoft#202746)
1 parent 4057a58 commit 1404ba5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/vs/workbench/contrib/chat/electron-sandbox/actions/voiceChatActions.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -871,9 +871,13 @@ export class KeywordActivationContribution extends Disposable implements IWorkbe
871871
if (result === KeywordRecognitionStatus.Recognized) {
872872
if (this.hostService.hasFocus) {
873873
this.commandService.executeCommand(this.getKeywordCommand());
874-
} else {
875-
this.handleKeywordActivation();
876874
}
875+
876+
// Immediately start another keyboard activation session
877+
// because we cannot assume that the command we execute
878+
// will trigger a speech recognition session.
879+
880+
this.handleKeywordActivation();
877881
}
878882
}
879883

0 commit comments

Comments
 (0)