mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 01:50:56 +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
|
||||
|
||||
@@ -50,9 +50,9 @@
|
||||
implementationClass="com.intellij.grazie.ide.inspection.grammar.GrazieInspection"
|
||||
level="GRAMMAR_ERROR" key="grazie.grammar.inspection.grammar.text"/>
|
||||
|
||||
<!--<localInspection bundle="messages.GrazieBundle" groupKey="grazie.group.name" enabledByDefault="true" shortName="LanguageDetectionInspection"-->
|
||||
<!-- implementationClass="com.intellij.grazie.ide.inspection.detection.LanguageDetectionInspection"-->
|
||||
<!-- level="WARNING" key="grazie.detection.inspection.text"/>-->
|
||||
<localInspection bundle="messages.GrazieBundle" groupKey="grazie.group.name" enabledByDefault="true" shortName="LanguageDetectionInspection"
|
||||
implementationClass="com.intellij.grazie.ide.inspection.detection.LanguageDetectionInspection"
|
||||
level="WARNING" key="grazie.detection.inspection.text"/>
|
||||
|
||||
<applicationConfigurable parentId="editor" instance="com.intellij.grazie.ide.ui.proofreading.ProofreadConfigurable" id="proofread"
|
||||
key="configurable.group.proofread.settings.display.name" bundle="messages.OptionsBundle"/>
|
||||
|
||||
@@ -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