mirror of
https://github.com/Microsoft/vscode
synced 2024-09-28 23:42:26 +00:00
Let's remove the read aloud actoin (fix microsoft/vscode-copilot#8458) (#229655)
This commit is contained in:
parent
830da20441
commit
be2747e47e
|
@ -1299,29 +1299,6 @@ export class InstallSpeechProviderForVoiceChatAction extends BaseInstallSpeechPr
|
|||
}
|
||||
}
|
||||
|
||||
export class InstallSpeechProviderForSynthesizeChatAction extends BaseInstallSpeechProviderAction {
|
||||
|
||||
static readonly ID = 'workbench.action.chat.installProviderForSynthesis';
|
||||
|
||||
constructor() {
|
||||
super({
|
||||
id: InstallSpeechProviderForSynthesizeChatAction.ID,
|
||||
title: localize2('workbench.action.chat.installProviderForSynthesis.label', "Read Aloud"),
|
||||
icon: Codicon.unmute,
|
||||
precondition: InstallingSpeechProvider.negate(),
|
||||
menu: [{
|
||||
id: MenuId.ChatMessageFooter,
|
||||
when: ContextKeyExpr.and(CONTEXT_RESPONSE, HasSpeechProvider.negate()),
|
||||
group: 'navigation'
|
||||
}]
|
||||
});
|
||||
}
|
||||
|
||||
protected getJustification(): string {
|
||||
return localize('installProviderForSynthesis.justification', "Speaker support requires this extension.");
|
||||
}
|
||||
}
|
||||
|
||||
//#endregion
|
||||
|
||||
registerThemingParticipant((theme, collector) => {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { InlineVoiceChatAction, QuickVoiceChatAction, StartVoiceChatAction, VoiceChatInChatViewAction, StopListeningAction, StopListeningAndSubmitAction, KeywordActivationContribution, InstallSpeechProviderForSynthesizeChatAction, InstallSpeechProviderForVoiceChatAction, HoldToVoiceChatInChatViewAction, ReadChatResponseAloud, StopReadAloud, StopReadChatItemAloud } from './actions/voiceChatActions.js';
|
||||
import { InlineVoiceChatAction, QuickVoiceChatAction, StartVoiceChatAction, VoiceChatInChatViewAction, StopListeningAction, StopListeningAndSubmitAction, KeywordActivationContribution, InstallSpeechProviderForVoiceChatAction, HoldToVoiceChatInChatViewAction, ReadChatResponseAloud, StopReadAloud, StopReadChatItemAloud } from './actions/voiceChatActions.js';
|
||||
import { registerAction2 } from '../../../../platform/actions/common/actions.js';
|
||||
import { WorkbenchPhase, registerWorkbenchContribution2 } from '../../../common/contributions.js';
|
||||
|
||||
|
@ -21,6 +21,5 @@ registerAction2(StopListeningAndSubmitAction);
|
|||
registerAction2(ReadChatResponseAloud);
|
||||
registerAction2(StopReadChatItemAloud);
|
||||
registerAction2(StopReadAloud);
|
||||
registerAction2(InstallSpeechProviderForSynthesizeChatAction);
|
||||
|
||||
registerWorkbenchContribution2(KeywordActivationContribution.ID, KeywordActivationContribution, WorkbenchPhase.AfterRestored);
|
||||
|
|
Loading…
Reference in a new issue