Skip to content

Commit d40c195

Browse files
committed
Ensure the showInputBox calls within the template editing flow consistently display the correct title
1 parent 63c9ce8 commit d40c195

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,16 +140,14 @@ export const handle_show_prompt_template_quick_pick = async (
140140
const TEMPLATE_LABEL = 'Template'
141141

142142
const create_edit_options = (current_template: PromptTemplate) => {
143-
144-
145143
return [
146144
{
147145
label: NAME_LABEL,
148146
detail: current_template.name
149147
},
150148
{
151149
label: TEMPLATE_LABEL,
152-
description: !current_template.template? 'required' : undefined,
150+
description: !current_template.template ? 'required' : undefined,
153151
detail: current_template.template
154152
}
155153
]
@@ -187,6 +185,7 @@ export const handle_show_prompt_template_quick_pick = async (
187185

188186
if (selected.label == NAME_LABEL) {
189187
const new_name = await vscode.window.showInputBox({
188+
title,
190189
prompt: 'Enter an optional name for the template',
191190
value: template.name,
192191
placeHolder: 'Leave empty to remove name'
@@ -208,6 +207,7 @@ export const handle_show_prompt_template_quick_pick = async (
208207
resolve(result)
209208
} else if (selected.label == TEMPLATE_LABEL) {
210209
const new_template_text = await vscode.window.showInputBox({
210+
title,
211211
prompt: 'Enter the prompt template',
212212
value: template.template,
213213
placeHolder:

0 commit comments

Comments
 (0)