mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
PY-75468 Disable Pycharm Pro suggestion for DataSpell
GitOrigin-RevId: 18afea616bcf511c8952af4ca9a819b4cbe0f824
This commit is contained in:
committed by
intellij-monorepo-bot
parent
eaf543252e
commit
665be20505
@@ -36,7 +36,7 @@ internal class PycharmProSuggestionProvider : PluginSuggestionProvider {
|
||||
if (!vFile.isPythonFile()
|
||||
|| isDismissed()
|
||||
|| tryUltimateIsDisabled()
|
||||
|| isPyCharmProOrIdeaUltimate()
|
||||
|| isUntargetedIDE()
|
||||
|| FileIndexFacade.getInstance(project).isInLibraryClasses(vFile)) {
|
||||
return null
|
||||
}
|
||||
@@ -63,9 +63,9 @@ internal class PycharmProSuggestionProvider : PluginSuggestionProvider {
|
||||
return PACKAGES_TO_ADVERTISE.intersect(imports).firstOrNull()
|
||||
}
|
||||
|
||||
private fun isPyCharmProOrIdeaUltimate(): Boolean {
|
||||
private fun isUntargetedIDE(): Boolean {
|
||||
val productCode = ApplicationInfoImpl.getShadowInstanceImpl().build.productCode
|
||||
return productCode == "PY" || productCode == "IU"
|
||||
return productCode == "PY" || productCode == "IU" || productCode == "DS"
|
||||
}
|
||||
|
||||
private fun isDismissed(): Boolean = PropertiesComponent.getInstance().isTrueValue(PYCHARM_PRO_SUGGESTION_DISMISSED_KEY)
|
||||
|
||||
Reference in New Issue
Block a user