Skip to content

Commit 8f89685

Browse files
committed
Rename the internal message command FOCUS_CHAT_INPUT to FOCUS_PROMPT_FIELD for consistency
1 parent ee184c5 commit 8f89685

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎packages/vscode/src/views/panel/backend/message-handlers/handle-at-sign-quick-pick/handle-at-sign-quick-pick.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export const handle_at_sign_quick_pick = async (
110110

111111
if (!replacement) {
112112
panel_provider.send_message({
113-
command: 'FOCUS_CHAT_INPUT'
113+
command: 'FOCUS_PROMPT_FIELD'
114114
})
115115
return
116116
}

‎packages/vscode/src/views/panel/backend/message-handlers/handle-hash-sign-quick-pick.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const handle_hash_sign_quick_pick = async (
1515

1616
if (!replacement) {
1717
panel_provider.send_message({
18-
command: 'FOCUS_CHAT_INPUT'
18+
command: 'FOCUS_PROMPT_FIELD'
1919
})
2020
return
2121
}

‎packages/vscode/src/views/panel/backend/message-handlers/handle-show-history-quick-pick.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ export const handle_show_history_quick_pick = async (
294294
}),
295295
quick_pick.onDidHide(() => {
296296
panel_provider.send_message({
297-
command: 'FOCUS_CHAT_INPUT'
297+
command: 'FOCUS_PROMPT_FIELD'
298298
})
299299
disposables.forEach((d) => d.dispose())
300300
})

‎packages/vscode/src/views/panel/backend/message-handlers/handle-show-prompt-template-quick-pick.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ export const handle_show_prompt_template_quick_pick = async (
350350

351351
await set_instructions(prompt_text)
352352
panel_provider.send_message({
353-
command: 'FOCUS_CHAT_INPUT'
353+
command: 'FOCUS_PROMPT_FIELD'
354354
})
355355
}
356356
}),
@@ -461,7 +461,7 @@ export const handle_show_prompt_template_quick_pick = async (
461461
is_disposed = true
462462
if (!is_template_accepted) {
463463
panel_provider.send_message({
464-
command: 'FOCUS_CHAT_INPUT'
464+
command: 'FOCUS_PROMPT_FIELD'
465465
})
466466
}
467467
disposables.forEach((d) => d.dispose())

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export const Main: React.FC<Props> = (props) => {
159159
[message.mode]: message.id
160160
}))
161161
break
162-
case 'FOCUS_CHAT_INPUT':
162+
case 'FOCUS_PROMPT_FIELD':
163163
// This is handled in View.tsx, which will trigger a re-render.
164164
break
165165
}

0 commit comments

Comments
 (0)