mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
OPENIDE ability download spell checking library was returned
(cherry picked from commit 64a37b97935c95e005e68d0b8adfa16a11cadbac)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user