[perf_tests]Fixed goToElement method

GitOrigin-RevId: 0f5a14b8785119842e420a842820d6f79b6dcb77
This commit is contained in:
Nikita Barkov
2024-08-27 09:36:06 +02:00
committed by intellij-monorepo-bot
parent d712de56bf
commit 76c0874bec

View File

@@ -55,7 +55,7 @@ class FindUsagesCommand(text: String, line: Int) : PerformanceCommandCoroutineAd
}
}
fun goToElement(position: String?, elementName: String, context: PlaybackContext) {
fun goToElement(position: String?, elementName: String?, context: PlaybackContext) {
if (position != null) {
val result = GoToNamedElementCommand(GoToNamedElementCommand.PREFIX + " $position $elementName", -1).execute(context)
result.exceptionally { e ->