File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/language
utbot-ui-commons/src/main/kotlin/org/utbot/intellij/plugin/language/agnostic Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ object JvmLanguageAssistant : LanguageAssistant() {
109109 }
110110 }
111111 } else {
112- val someSelection = e.getData(PlatformDataKeys .SELECTED_ITEMS )? : return null
112+ val someSelection = e.getData(PlatformDataKeys .PSI_ELEMENT_ARRAY )? : return null
113113 someSelection.forEach {
114114 when (it) {
115115 is PsiFileSystemItem -> srcClasses + = getAllClasses(project, arrayOf(it.virtualFile))
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ abstract class LanguageAssistant {
4545 element.containingFile?.let { getLanguageFromFile(it) }
4646 }
4747 else -> {
48- val someSelection = e.getData(PlatformDataKeys .SELECTED_ITEMS )? : return null
48+ val someSelection = e.getData(PlatformDataKeys .PSI_ELEMENT_ARRAY )? : return null
4949 someSelection.firstNotNullOfOrNull {
5050 when (it) {
5151 is PsiFileSystemItem -> findLanguageRecursively(project, arrayOf(it.virtualFile))
You can’t perform that action at this time.
0 commit comments