Skip to content

Commit ce3d246

Browse files
committed
add supper modifier notice to the prompt selection dialog
1 parent 555257b commit ce3d246

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt.ts

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -181,15 +181,29 @@ const createPlaceholderText = (options: ISelectPromptOptions): string => {
181181
'Select a prompt to use',
182182
);
183183

184-
// if no widget reference is provided, add the note about
185-
// the `alt`/`option` key modifier users can use
184+
// if no widget reference is provided, add the note about `options`
185+
// and `cmd` modifiers users can use to alter the command behavior
186186
if (!widget) {
187-
const key = (isWindows || isLinux) ? 'alt' : 'option';
187+
const altOptionkey = (isWindows || isLinux) ? 'Alt' : 'Option';
188188

189-
text += ' ' + localize(
189+
const altOptionModifierNote = localize(
190190
'commands.prompts.use.select-dialog.alt-modifier-note',
191-
'(hold `{0}` to use in Edits)',
192-
key,
191+
'{0}-key to use in Edits',
192+
altOptionkey,
193+
);
194+
195+
const cmdCtrlkey = (isWindows || isLinux) ? 'Ctrl' : 'Cmd';
196+
const superModifierNote = localize(
197+
'commands.prompts.use.select-dialog.super-modifier-note',
198+
'{0}-key to open in editor',
199+
cmdCtrlkey,
200+
);
201+
202+
text += localize(
203+
'commands.prompts.use.select-dialog.modifier-notes',
204+
' (hold {0} or {1})',
205+
altOptionModifierNote,
206+
superModifierNote,
193207
);
194208
}
195209

0 commit comments

Comments
 (0)