Skip to content

Commit dd588d7

Browse files
committed
Replace showInformationMessage with showWarningMessage for empty instructions across prompt message handlers
- [Fragment] should be a warning ├── .nvmrc └── apps └── editor └── src ├── i18n │ └── translations │ └── views │ └── common │ └── handlers │ └── common.ts └── views └── prompt └── backend └── message-handlers ├── handle-invoke-agentic-cli.ts ├── handle-make-api-call.ts └── handle-preview-prompt.ts
1 parent 1bfd93a commit dd588d7

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎apps/editor/src/views/prompt/backend/message-handlers/handle-invoke-agentic-cli.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const handle_invoke_agentic_cli = async (
1616
const current_instructions = prompt_view_provider.current_instructions.trim()
1717

1818
if (!current_instructions) {
19-
vscode.window.showInformationMessage(
19+
vscode.window.showWarningMessage(
2020
t('views.common.handlers.common.instructions-cannot-be-empty')
2121
)
2222
return

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const handle_make_api_call = async (
3737
const current_instructions = prompt_view_provider.current_instructions.trim()
3838

3939
if (!current_instructions) {
40-
vscode.window.showInformationMessage(
40+
vscode.window.showWarningMessage(
4141
t('views.common.handlers.common.instructions-cannot-be-empty')
4242
)
4343
return

‎apps/editor/src/views/prompt/backend/message-handlers/handle-preview-prompt.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const handle_preview_prompt = async (params: {
1919
params.prompt_view_provider.current_instructions.trim()
2020

2121
if (!current_instructions) {
22-
vscode.window.showInformationMessage(
22+
vscode.window.showWarningMessage(
2323
t('views.common.handlers.common.instructions-cannot-be-empty')
2424
)
2525
return

0 commit comments

Comments
 (0)