Skip to content

Commit 517be50

Browse files
authored
voice - ensure "read aloud" action comes first (microsoft#230788)
1 parent 14ce43e commit 517be50

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,8 @@ export class ReadChatResponseAloud extends Action2 {
919919
ScopedChatSynthesisInProgress.negate(), // but not when already in progress
920920
CONTEXT_RESPONSE_FILTERED.negate(), // and not when response is filtered
921921
),
922-
group: 'navigation'
922+
group: 'navigation',
923+
order: -10 // first
923924
}, {
924925
id: MENU_INLINE_CHAT_WIDGET_SECONDARY,
925926
when: ContextKeyExpr.and(
@@ -928,7 +929,8 @@ export class ReadChatResponseAloud extends Action2 {
928929
ScopedChatSynthesisInProgress.negate(), // but not when already in progress
929930
CONTEXT_RESPONSE_FILTERED.negate() // and not when response is filtered
930931
),
931-
group: 'navigation'
932+
group: 'navigation',
933+
order: -10 // first
932934
}]
933935
});
934936
}
@@ -1046,7 +1048,8 @@ export class StopReadChatItemAloud extends Action2 {
10461048
CONTEXT_RESPONSE, // only for responses
10471049
CONTEXT_RESPONSE_FILTERED.negate() // but not when response is filtered
10481050
),
1049-
group: 'navigation'
1051+
group: 'navigation',
1052+
order: -10 // first
10501053
},
10511054
{
10521055
id: MENU_INLINE_CHAT_WIDGET_SECONDARY,
@@ -1055,7 +1058,8 @@ export class StopReadChatItemAloud extends Action2 {
10551058
CONTEXT_RESPONSE, // only for responses
10561059
CONTEXT_RESPONSE_FILTERED.negate() // but not when response is filtered
10571060
),
1058-
group: 'navigation'
1061+
group: 'navigation',
1062+
order: -10 // first
10591063
}
10601064
]
10611065
});

0 commit comments

Comments
 (0)