Skip to content

Commit a2787e1

Browse files
committed
Use information message instead of warning when instructions are empty
- views.common.handlers.common.instructions-cannot-be-empty should be information message ├── .prettierrc └── 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 └── handle-save-completed-tasks.ts
1 parent 4ce587c commit a2787e1

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
@@ -19,7 +19,7 @@ export const handle_invoke_agentic_cli = async (
1919
const current_instructions = prompt_view_provider.current_instructions.trim()
2020

2121
if (!current_instructions) {
22-
vscode.window.showWarningMessage(
22+
vscode.window.showInformationMessage(
2323
t('views.common.handlers.common.instructions-cannot-be-empty')
2424
)
2525
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
@@ -44,7 +44,7 @@ export const handle_make_api_call = async (
4444
const current_instructions = prompt_view_provider.current_instructions.trim()
4545

4646
if (!current_instructions) {
47-
vscode.window.showWarningMessage(
47+
vscode.window.showInformationMessage(
4848
t('views.common.handlers.common.instructions-cannot-be-empty')
4949
)
5050
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.showWarningMessage(
22+
vscode.window.showInformationMessage(
2323
t('views.common.handlers.common.instructions-cannot-be-empty')
2424
)
2525
return

0 commit comments

Comments
 (0)