Skip to content

Commit 690af31

Browse files
committed
Update nothing in context to save notification to an information message
- NOTHING_IN_CONTEXT_TO_SAVE should be an info message
1 parent 459b326 commit 690af31

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎apps/editor/src/commands/context-restoration/save/save-file-selection-command.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export const save_file_selection_command = (params: {
1515
async () => {
1616
const checked_files = params.workspace_provider.get_checked_files()
1717
if (checked_files.length == 0) {
18-
vscode.window.showWarningMessage(
19-
dictionary.warning_message.NOTHING_IN_CONTEXT_TO_SAVE
18+
vscode.window.showInformationMessage(
19+
dictionary.information_message.NOTHING_IN_CONTEXT_TO_SAVE
2020
)
2121
return
2222
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export const dictionary = {
66

77
information_message: {
88
TASK_DELETED: 'Task deleted.',
9+
NOTHING_IN_CONTEXT_TO_SAVE: 'There is nothing in your context to save.',
910
ALL_CHECKED_FILES_UNCAHNGED_SINCE_COMMIT: (
1011
folder_name: string,
1112
commit_hash: string
@@ -85,7 +86,6 @@ export const dictionary = {
8586
'Code completions are not supported with active text selection.',
8687
CANNOT_REFERENCE_FILE_OUTSIDE_WORKSPACE:
8788
'Cannot reference file outside of the workspace.',
88-
NOTHING_IN_CONTEXT_TO_SAVE: 'There is nothing in your context to save.',
8989
NO_OPEN_EDITORS_SELECTED: 'No open editors selected.',
9090
NO_EDITOR_OPEN: 'No editor is open.',
9191
CANNOT_COPY_PROMPT_IN_CODE_COMPLETION_WITH_SELECTION:

0 commit comments

Comments
 (0)