OPENIDE ability download spell checking library was returned

(cherry picked from commit 64a37b97935c95e005e68d0b8adfa16a11cadbac)
This commit is contained in:
Nikita Iarychenko
2025-03-17 13:28:19 +04:00
parent 216d1cdebb
commit ecf46bc2a8
2 changed files with 14 additions and 2 deletions

View File

@@ -58,7 +58,8 @@ object WhiteListUrls {
"https://usage-stat.cuba-platform.com",
"https://api.hsforms.com/submissions/v3/integration/submit/",
"https://store.amplicode.ru",
"https://ls.store.amplicode.ru"
"https://ls.store.amplicode.ru",
"https://resources.openide.ru"
)
// Collect urls from KnownSchemaIdentifiers.json

View File

@@ -36,7 +36,18 @@ internal object LangDownloader {
}
private fun runDownload(language: Lang, project: Project?): Path? {
return promptToSelectLanguageBundleManually(project, language)
try {
val presentableName = msg("grazie.settings.proofreading.languages.download.name", language.nativeName)
return ProgressManager.getInstance().runProcessWithProgressSynchronously<Path, Exception>(
{ performDownload(language, presentableName) },
presentableName,
false,
project
)
} catch (exception: Throwable) {
thisLogger().warn(exception)
return promptToSelectLanguageBundleManually(project, language)
}
}
@Throws(IllegalStateException::class)