Skip to content

Commit 1c34c15

Browse files
committed
Refactor edit format instruction titles to use template literals for improved readability
1 parent 1bdb40e commit 1c34c15

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

  • packages/vscode/src/views/panel/frontend/Main/MainView

‎packages/vscode/src/views/panel/frontend/Main/MainView/MainView.tsx‎

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -342,23 +342,17 @@ export const MainView: React.FC<Props> = (props) => {
342342
{
343343
value: 'whole',
344344
label: 'whole',
345-
title:
346-
'Whole instructions included in every message: ' +
347-
props.edit_format_instructions.whole
345+
title: `Instructions included in every message: "${props.edit_format_instructions.whole}"`
348346
},
349347
{
350348
value: 'truncated',
351349
label: 'truncated',
352-
title:
353-
'Truncated instructions included in every message: ' +
354-
props.edit_format_instructions.truncated
350+
title: `Instructions included in every message: "${props.edit_format_instructions.truncated}"`
355351
},
356352
{
357353
value: 'diff',
358354
label: 'diff',
359-
title:
360-
'Diff instructions included in every message: ' +
361-
props.edit_format_instructions.diff
355+
title: `Instructions included in every message: "${props.edit_format_instructions.diff}"`
362356
}
363357
]}
364358
selected_value={

0 commit comments

Comments
 (0)