mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
[performance-tests][kotlin-plugin] fix find usage java command
GitOrigin-RevId: 09515ee720c13806e21235e58fd90c14f40f49de
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e44c3c21ef
commit
9a01a8612f
@@ -41,7 +41,7 @@ class FindUsagesJavaCommand(text: String, line: Int) : AbstractCommand(text, lin
|
||||
override fun _execute(context: PlaybackContext): Promise<Any?> {
|
||||
val actionCallback = ActionCallbackProfilerStopper()
|
||||
val arguments = text.split(" ".toRegex()).toTypedArray()
|
||||
val position = if (arguments.size == 2) arguments[1] else null
|
||||
val position = if (arguments.size == 3) arguments[1] else null
|
||||
val elementName = if (arguments.size == 3) arguments[2] else arguments[1]
|
||||
if (position != null) {
|
||||
val result = GoToNamedElementCommand(GoToNamedElementCommand.PREFIX + " $position $elementName", -1).execute(context)
|
||||
|
||||
Reference in New Issue
Block a user