Skip to content

Commit 33c02e5

Browse files
committed
Switch empty instructions warning from modal to standard VS Code information message
- end with dots [Fragment]
1 parent fd6bc47 commit 33c02e5

2 files changed

Lines changed: 19 additions & 20 deletions

File tree

‎apps/editor/src/i18n/translations/views/prompt/handlers/handle-make-api-call.ts‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
export const translations = {
22
'views.prompt.handlers.handle-make-api-call.instructions-cannot-be-empty': {
3-
en: 'Instructions cannot be empty',
4-
pl: 'Instrukcje nie mogą być puste',
5-
'zh-cn': '指令不能为空',
6-
ja: '指示を空にすることはできません',
7-
'zh-tw': '指令不能為空',
8-
de: 'Anweisungen dürfen nicht leer sein',
9-
es: 'Las instrucciones no pueden estar vacías',
10-
fr: 'Les instructions ne peuvent pas être vides',
11-
'pt-br': 'As instruções não podem estar vazias',
12-
ru: 'Инструкции не могут быть пустыми',
13-
ko: '지침은 비워 둘 수 없습니다',
14-
it: 'Le istruzioni non possono essere vuote',
15-
tr: 'Talimatlar boş olamaz',
16-
cs: 'Instrukce nemohou být prázdné',
17-
hu: 'Az utasítások nem lehetnek üresek',
18-
bg: 'Инструкциите не могат да бъдат празни'
3+
en: 'Instructions cannot be empty.',
4+
pl: 'Instrukcje nie mogą być puste.',
5+
'zh-cn': '指令不能为空。',
6+
ja: '指示を空にすることはできません。',
7+
'zh-tw': '指令不能為空。',
8+
de: 'Anweisungen dürfen nicht leer sein.',
9+
es: 'Las instrucciones no pueden estar vacías.',
10+
fr: 'Les instructions ne peuvent pas être vides.',
11+
'pt-br': 'As instruções não podem estar vazias.',
12+
ru: 'Инструкции не могут быть пустыми.',
13+
ko: '지침은 비워 둘 수 없습니다.',
14+
it: 'Le istruzioni non possono essere vuote.',
15+
tr: 'Talimatlar boş olamaz.',
16+
cs: 'Instrukce nemohou být prázdné.',
17+
hu: 'Az utasítások nem lehetnek üresek.',
18+
bg: 'Инструкциите не могат да бъдат празни.'
1919
},
2020
'views.prompt.handlers.handle-make-api-call.context-cannot-be-empty': {
2121
en: 'Context cannot be empty.',

‎apps/editor/src/views/prompt/backend/message-handlers/handle-make-api-call.ts‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,11 @@ export const handle_make_api_call = async (
157157
const current_instructions = prompt_view_provider.current_instructions
158158

159159
if (!current_instructions) {
160-
prompt_view_provider.send_message({
161-
command: 'SHOW_AUTO_CLOSING_MODAL',
162-
title: t(
160+
vscode.window.showInformationMessage(
161+
t(
163162
'views.prompt.handlers.handle-make-api-call.instructions-cannot-be-empty'
164163
)
165-
})
164+
)
166165
return
167166
}
168167

0 commit comments

Comments
 (0)