Skip to content

Commit a65169b

Browse files
committed
Change select files to search message from info to warning
- [Pasted text] should be a warning
1 parent 1654548 commit a65169b

6 files changed

Lines changed: 11 additions & 11 deletions

File tree

‎apps/editor/src/commands/select-imported-files-commands/utils/prompt-for-imported-files.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ export const prompt_for_imported_files = async (params: {
286286
} else if (button === search_button) {
287287
current_selected_items = [...quick_pick.selectedItems]
288288
if (current_selected_items.length === 0) {
289-
vscode.window.showInformationMessage(
290-
t('common.info.select-files-to-search')
289+
vscode.window.showWarningMessage(
290+
t('common.warning.select-files-to-search')
291291
)
292292
return
293293
}

‎apps/editor/src/commands/select-referencing-files-commands/utils/prompt-for-referencing-files.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ export const prompt_for_referencing_files = async (params: {
132132
} else if (button === search_button) {
133133
current_selected_items = [...quick_pick.selectedItems]
134134
if (current_selected_items.length === 0) {
135-
vscode.window.showInformationMessage(
136-
t('common.info.select-files-to-search')
135+
vscode.window.showWarningMessage(
136+
t('common.warning.select-files-to-search')
137137
)
138138
return
139139
}

‎apps/editor/src/features/context-restoration/utils/select-context-paths.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ export const select_context_paths = async (params: {
143143
(i) => i.file_path
144144
)
145145
if (selected_paths.length === 0) {
146-
vscode.window.showInformationMessage(
147-
t('common.info.select-files-to-search')
146+
vscode.window.showWarningMessage(
147+
t('common.warning.select-files-to-search')
148148
)
149149
return
150150
}

‎apps/editor/src/features/search-files/utils/show-search-results-quick-pick.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ export const show_search_results_quick_pick = async (params: {
152152
.filter((p): p is string => p !== undefined)
153153

154154
if (selected.length === 0) {
155-
vscode.window.showInformationMessage(
156-
t('common.info.select-files-to-search')
155+
vscode.window.showWarningMessage(
156+
t('common.warning.select-files-to-search')
157157
)
158158
return
159159
}

‎apps/editor/src/i18n/translations/common.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,7 @@ export const translations = {
10431043
hu: 'Beállítások megnyitása',
10441044
bg: 'Отвори настройките'
10451045
},
1046-
'common.info.select-files-to-search': {
1046+
'common.warning.select-files-to-search': {
10471047
en: 'Please select files to search.',
10481048
pl: 'Proszę wybrać pliki do przeszukania.',
10491049
'zh-cn': '请选择要搜索的文件。',

‎apps/editor/src/utils/git-repository-utils.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,8 @@ export const prepare_staged_changes = async (params: {
485485
quick_pick.selectedItems
486486
).map((i: any) => i.fsPath)
487487
if (current_selected_fs_paths.length === 0) {
488-
vscode.window.showInformationMessage(
489-
t('common.info.select-files-to-search')
488+
vscode.window.showWarningMessage(
489+
t('common.warning.select-files-to-search')
490490
)
491491
return
492492
}

0 commit comments

Comments
 (0)