Skip to content

Commit 7d30c8d

Browse files
committed
Standardize the dictionary key for the empty context warning to CONTEXT_CANNOT_BE_EMPTY
1 parent d5cfda0 commit 7d30c8d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/shared/src/constants/dictionary.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export const dictionary = {
6868
'Cannot copy prompt in edit context mode without any context. Please add files to the context.',
6969
CANNOT_COPY_PROMPT_IN_CODE_COMPLETION_WITHOUT_EDITOR:
7070
'Cannot copy prompt in code completion mode without an active editor.',
71-
UNABLE_TO_WORK_WITH_EMPTY_CONTEXT: 'Unable to work with empty context.',
71+
CONTEXT_CANNOT_BE_EMPTY: 'Context cannot be empty.',
7272
INSTRUCTIONS_CANNOT_BE_EMPTY: 'Instructions cannot be empty.',
7373
CANNOT_PREVIEW_IN_CODE_COMPLETION_WITHOUT_EDITOR:
7474
'Cannot preview in code completion mode without an active editor.',

‎packages/vscode/src/views/panel/backend/message-handlers/handle-edit-context.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ const perform_context_editing = async (params: {
273273

274274
if (!collected_files) {
275275
vscode.window.showWarningMessage(
276-
dictionary.warning_message.UNABLE_TO_WORK_WITH_EMPTY_CONTEXT
276+
dictionary.warning_message.CONTEXT_CANNOT_BE_EMPTY
277277
)
278278
return
279279
}

0 commit comments

Comments
 (0)