mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-30702 Remove unused code
closes https://github.com/JetBrains/intellij-community/pull/1736 GitOrigin-RevId: 0669006ed4d09ce4d1aeb345fe49ea5cd97437c3
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3b0ca15b2a
commit
c23a28f247
@@ -15,12 +15,7 @@ object PoetryExtrasLineMarkerContributor : RunLineMarkerContributor() {
|
||||
override fun getInfo(element: PsiElement): Info? {
|
||||
val sdk = element.project.pythonSdk ?: return null
|
||||
if (!sdk.isPoetry) return null
|
||||
try {
|
||||
if (element !is TomlKey) return null
|
||||
}
|
||||
catch (e: NoClassDefFoundError) {
|
||||
return null //Toml plugin is installed. But, PyCharm has not restarted yet.
|
||||
}
|
||||
if (element !is TomlKey) return null
|
||||
val keyValue = element.parent as? TomlKeyValue ?: return null
|
||||
val header = (keyValue.parent as? TomlTable)?.header ?: return null
|
||||
if (header.key?.text != "tool.poetry.extras") return null
|
||||
|
||||
Reference in New Issue
Block a user