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() {
109
109
}
110
110
}
111
111
} else {
112
- val someSelection = e.getData(PlatformDataKeys .SELECTED_ITEMS )? : return null
112
+ val someSelection = e.getData(PlatformDataKeys .PSI_ELEMENT_ARRAY )? : return null
113
113
someSelection.forEach {
114
114
when (it) {
115
115
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 {
45
45
element.containingFile?.let { getLanguageFromFile(it) }
46
46
}
47
47
else -> {
48
- val someSelection = e.getData(PlatformDataKeys .SELECTED_ITEMS )? : return null
48
+ val someSelection = e.getData(PlatformDataKeys .PSI_ELEMENT_ARRAY )? : return null
49
49
someSelection.firstNotNullOfOrNull {
50
50
when (it) {
51
51
is PsiFileSystemItem -> findLanguageRecursively(project, arrayOf(it.virtualFile))
You can’t perform that action at this time.
0 commit comments