@@ -5,7 +5,7 @@ import { Dropdown as UiDropdown } from '@ui/components/editor/common/Dropdown'
55import { Item as UiItem } from '@ui/components/editor/settings/Item'
66import { Group as UiGroup } from '@ui/components/editor/settings/Group/Group'
77import { Section as UiSection } from '@ui/components/editor/settings/Section'
8- import { TextButton as UiTextButton } from '@ui/components/editor/settings /TextButton'
8+ import { TextButton as UiTextButton } from '@ui/components/editor/common /TextButton'
99import { Textarea as UiTextarea } from '@ui/components/editor/common/Textarea'
1010import { EditFormatInstructions } from '@/views/settings/types/messages'
1111import {
@@ -185,10 +185,14 @@ export const GeneralSection = forwardRef<HTMLDivElement, Props>(
185185 />
186186 < UiItem
187187 title = { t ( 'general.code-at-cursor.keyboard-shortcut.title' ) }
188- description = { t ( 'general.code-at-cursor.keyboard-shortcut.description' ) }
188+ description = { t (
189+ 'general.code-at-cursor.keyboard-shortcut.description'
190+ ) }
189191 slot_right = {
190192 < UiTextButton
191- on_click = { ( ) => props . on_open_keybindings ( 'codeWebChat.codeAtCursor' ) }
193+ on_click = { ( ) =>
194+ props . on_open_keybindings ( 'codeWebChat.codeAtCursor' )
195+ }
192196 >
193197 { t ( 'general.code-at-cursor.keyboard-shortcut.action' ) }
194198 </ UiTextButton >
@@ -216,7 +220,9 @@ export const GeneralSection = forwardRef<HTMLDivElement, Props>(
216220 />
217221 < UiItem
218222 title = { t ( 'general.include-prompts-in-commit-messages.title' ) }
219- description = { t ( 'general.include-prompts-in-commit-messages.description' ) }
223+ description = { t (
224+ 'general.include-prompts-in-commit-messages.description'
225+ ) }
220226 slot_right = {
221227 < UiToggler
222228 is_on = { props . include_prompts_in_commit_messages }
@@ -226,9 +232,7 @@ export const GeneralSection = forwardRef<HTMLDivElement, Props>(
226232 />
227233 < UiItem
228234 title = { t ( 'general.intelligent-update.auto-run.title' ) }
229- description = { t (
230- 'general.intelligent-update.auto-run.description'
231- ) }
235+ description = { t ( 'general.intelligent-update.auto-run.description' ) }
232236 slot_right = {
233237 < UiToggler
234238 is_on = { props . auto_run_intelligent_update }
@@ -363,7 +367,12 @@ export const GeneralSection = forwardRef<HTMLDivElement, Props>(
363367 : undefined
364368 }
365369 action_title = { t ( 'general.action.restore-default' ) }
366- on_action_click = { ( ) => handle_reset_instruction ( 'whole' , EDIT_FORMAT_INSTRUCTIONS_WHOLE ) }
370+ on_action_click = { ( ) =>
371+ handle_reset_instruction (
372+ 'whole' ,
373+ EDIT_FORMAT_INSTRUCTIONS_WHOLE
374+ )
375+ }
367376 />
368377 </ UiItem >
369378
@@ -393,7 +402,12 @@ export const GeneralSection = forwardRef<HTMLDivElement, Props>(
393402 : undefined
394403 }
395404 action_title = { t ( 'general.action.restore-default' ) }
396- on_action_click = { ( ) => handle_reset_instruction ( 'truncated' , EDIT_FORMAT_INSTRUCTIONS_TRUNCATED ) }
405+ on_action_click = { ( ) =>
406+ handle_reset_instruction (
407+ 'truncated' ,
408+ EDIT_FORMAT_INSTRUCTIONS_TRUNCATED
409+ )
410+ }
397411 />
398412 </ UiItem >
399413
@@ -418,12 +432,18 @@ export const GeneralSection = forwardRef<HTMLDivElement, Props>(
418432 on_blur = { handle_instructions_blur }
419433 action_icon = {
420434 instructions . search_replace != '' &&
421- instructions . search_replace != EDIT_FORMAT_INSTRUCTIONS_SEARCH_REPLACE
435+ instructions . search_replace !=
436+ EDIT_FORMAT_INSTRUCTIONS_SEARCH_REPLACE
422437 ? 'discard'
423438 : undefined
424439 }
425440 action_title = { t ( 'general.action.restore-default' ) }
426- on_action_click = { ( ) => handle_reset_instruction ( 'search_replace' , EDIT_FORMAT_INSTRUCTIONS_SEARCH_REPLACE ) }
441+ on_action_click = { ( ) =>
442+ handle_reset_instruction (
443+ 'search_replace' ,
444+ EDIT_FORMAT_INSTRUCTIONS_SEARCH_REPLACE
445+ )
446+ }
427447 />
428448 </ UiItem >
429449
@@ -450,12 +470,16 @@ export const GeneralSection = forwardRef<HTMLDivElement, Props>(
450470 : undefined
451471 }
452472 action_title = { t ( 'general.action.restore-default' ) }
453- on_action_click = { ( ) => handle_reset_instruction ( 'diff' , EDIT_FORMAT_INSTRUCTIONS_DIFF ) }
473+ on_action_click = { ( ) =>
474+ handle_reset_instruction (
475+ 'diff' ,
476+ EDIT_FORMAT_INSTRUCTIONS_DIFF
477+ )
478+ }
454479 />
455480 </ UiItem >
456481 </ UiGroup >
457482 </ div >
458-
459483 </ UiSection >
460484 )
461485 }
0 commit comments