Skip to content

Commit d4f98a0

Browse files
committed
Convert no files selected warnings to information messages
1 parent ce3d5ee commit d4f98a0

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎apps/editor/src/commands/search-files-commands/search-files-commands.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ export const search_files_commands = (
269269
try {
270270
const currently_checked = workspace_provider.get_checked_files()
271271
if (currently_checked.length === 0) {
272-
vscode.window.showWarningMessage(
273-
t('feature.search-files.warning.no-files-selected' as any)
272+
vscode.window.showInformationMessage(
273+
t('feature.search-files.info.no-files-selected' as any)
274274
)
275275
return
276276
}
@@ -285,9 +285,9 @@ export const search_files_commands = (
285285
})
286286
}
287287

288-
if (files_to_search.length === 0) {
289-
vscode.window.showWarningMessage(
290-
t('feature.search-files.warning.no-files-selected-in-folder' as any)
288+
if (files_to_search.length == 0) {
289+
vscode.window.showInformationMessage(
290+
t('feature.search-files.info.no-files-selected-in-folder' as any)
291291
)
292292
return
293293
}

‎apps/editor/src/i18n/translations/features/search-files.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,7 @@ export const translations = {
12951295
hu: 'A keresés már folyamatban van.',
12961296
bg: 'Търсенето вече е в ход.'
12971297
},
1298-
'feature.search-files.warning.no-files-selected': {
1298+
'feature.search-files.info.no-files-selected': {
12991299
en: 'No files selected to search in.',
13001300
pl: 'Nie wybrano plików do wyszukiwania.',
13011301
'zh-cn': '未选择要搜索的文件。',

0 commit comments

Comments
 (0)