@@ -104,6 +104,15 @@ class VoiceChatSessionControllerFactory {
104
104
// Currently Focused Context
105
105
if ( context === 'focused' ) {
106
106
107
+ // Try with the terminal chat
108
+ const activeInstance = terminalService . activeInstance ;
109
+ if ( activeInstance ) {
110
+ const terminalChat = TerminalChatController . activeChatWidget || TerminalChatController . get ( activeInstance ) ;
111
+ if ( terminalChat ?. hasFocus ( ) ) {
112
+ return VoiceChatSessionControllerFactory . doCreateForTerminalChat ( terminalChat ) ;
113
+ }
114
+ }
115
+
107
116
// Try with the chat widget service, which currently
108
117
// only supports the chat view and quick chat
109
118
// https://github.com/microsoft/vscode/issues/191191
@@ -134,15 +143,6 @@ class VoiceChatSessionControllerFactory {
134
143
return VoiceChatSessionControllerFactory . doCreateForInlineChat ( inlineChat ) ;
135
144
}
136
145
}
137
-
138
- // Try with the terminal chat
139
- const activeInstance = terminalService . activeInstance ;
140
- if ( activeInstance ) {
141
- const terminalChat = TerminalChatController . activeChatWidget || TerminalChatController . get ( activeInstance ) ;
142
- if ( terminalChat ?. hasFocus ( ) ) {
143
- return VoiceChatSessionControllerFactory . doCreateForTerminalChat ( terminalChat ) ;
144
- }
145
- }
146
146
}
147
147
148
148
// View Chat
@@ -699,7 +699,6 @@ class BaseStopListeningAction extends Action2 {
699
699
private readonly target : 'inline' | 'terminal' | 'quick' | 'view' | 'editor' | undefined ,
700
700
context : RawContextKey < boolean > ,
701
701
menu : MenuId | undefined ,
702
- group : 'navigation' | 'main' = 'navigation'
703
702
) {
704
703
super ( {
705
704
...desc ,
@@ -713,7 +712,7 @@ class BaseStopListeningAction extends Action2 {
713
712
menu : menu ? [ {
714
713
id : menu ,
715
714
when : ContextKeyExpr . and ( CanVoiceChat , context ) ,
716
- group,
715
+ group : 'navigation' ,
717
716
order : - 1
718
717
} ] : undefined
719
718
} ) ;
@@ -765,7 +764,7 @@ export class StopListeningInTerminalChatAction extends BaseStopListeningAction {
765
764
static readonly ID = 'workbench.action.chat.stopListeningInTerminalChat' ;
766
765
767
766
constructor ( ) {
768
- super ( { id : StopListeningInTerminalChatAction . ID , icon : spinningLoading } , 'terminal' , CONTEXT_TERMINAL_VOICE_CHAT_IN_PROGRESS , MenuId . for ( 'terminalChatInput' ) , 'main' ) ;
767
+ super ( { id : StopListeningInTerminalChatAction . ID , icon : spinningLoading } , 'terminal' , CONTEXT_TERMINAL_VOICE_CHAT_IN_PROGRESS , MenuId . for ( 'terminalChatInput' ) ) ;
769
768
}
770
769
}
771
770
@@ -828,15 +827,16 @@ registerThemingParticipant((theme, collector) => {
828
827
}
829
828
830
829
.monaco-workbench:not(.reduce-motion) .interactive-input-part .monaco-action-bar .action-label.codicon-loading.codicon-modifier-spin:not(.disabled)::after,
831
- .monaco-workbench:not(.reduce-motion) .inline-chat .monaco-action-bar .action-label.codicon-loading.codicon-modifier-spin:not(.disabled),
830
+ .monaco-workbench:not(.reduce-motion) .inline-chat .monaco-action-bar .action-label.codicon-loading.codicon-modifier-spin:not(.disabled)::after ,
832
831
.monaco-workbench:not(.reduce-motion) .terminal-inline-chat .monaco-action-bar .action-label.codicon-loading.codicon-modifier-spin:not(.disabled)::after {
833
832
outline: 2px solid ${ activeRecordingColor } ;
834
833
outline-offset: -1px;
835
834
animation: pulseAnimation 1500ms cubic-bezier(0.75, 0, 0.25, 1) infinite;
836
835
}
837
836
838
837
.monaco-workbench:not(.reduce-motion) .interactive-input-part .monaco-action-bar .action-label.codicon-loading.codicon-modifier-spin:not(.disabled)::before,
839
- .monaco-workbench:not(.reduce-motion) .inline-chat .monaco-action-bar .action-label.codicon-loading.codicon-modifier-spin:not(.disabled)::before {
838
+ .monaco-workbench:not(.reduce-motion) .inline-chat .monaco-action-bar .action-label.codicon-loading.codicon-modifier-spin:not(.disabled)::before,
839
+ .monaco-workbench:not(.reduce-motion) .terminal-inline-chat .monaco-action-bar .action-label.codicon-loading.codicon-modifier-spin:not(.disabled)::before {
840
840
position: absolute;
841
841
outline: 1px solid ${ activeRecordingColor } ;
842
842
outline-offset: 2px;
0 commit comments