Skip to content

Commit 964dee3

Browse files
authored
Cannot hide mic btn (fix microsoft#232042) (microsoft#232193)
1 parent bdc347e commit 964dee3

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

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

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,17 +1351,26 @@ export class InstallSpeechProviderForVoiceChatAction extends BaseInstallSpeechPr
13511351
title: localize2('workbench.action.chat.installProviderForVoiceChat.label', "Start Voice Chat"),
13521352
icon: Codicon.mic,
13531353
precondition: InstallingSpeechProvider.negate(),
1354-
menu: [{
1355-
id: MenuId.ChatInput,
1356-
when: ContextKeyExpr.and(HasSpeechProvider.negate(), CONTEXT_CHAT_LOCATION.isEqualTo(ChatAgentLocation.Terminal).negate()),
1357-
group: 'navigation',
1358-
order: 3
1359-
}, {
1360-
id: TerminalChatExecute,
1361-
when: HasSpeechProvider.negate(),
1362-
group: 'navigation',
1363-
order: -1
1364-
}]
1354+
menu: [
1355+
{
1356+
id: MenuId.ChatInput,
1357+
when: ContextKeyExpr.and(HasSpeechProvider.negate(), ContextKeyExpr.or(CONTEXT_CHAT_LOCATION.isEqualTo(ChatAgentLocation.Panel), CONTEXT_CHAT_LOCATION.isEqualTo(ChatAgentLocation.EditingSession))),
1358+
group: 'navigation',
1359+
order: 3
1360+
},
1361+
{
1362+
id: MenuId.ChatExecute,
1363+
when: ContextKeyExpr.and(HasSpeechProvider.negate(), CONTEXT_CHAT_LOCATION.isEqualTo(ChatAgentLocation.Panel).negate(), CONTEXT_CHAT_LOCATION.isEqualTo(ChatAgentLocation.EditingSession).negate()),
1364+
group: 'navigation',
1365+
order: 2
1366+
},
1367+
{
1368+
id: TerminalChatExecute,
1369+
when: HasSpeechProvider.negate(),
1370+
group: 'navigation',
1371+
order: -1
1372+
}
1373+
]
13651374
});
13661375
}
13671376

0 commit comments

Comments
 (0)