diff --git a/platform/lang-impl/src/com/intellij/ide/util/gotoByName/ActionAsyncProvider.kt b/platform/lang-impl/src/com/intellij/ide/util/gotoByName/ActionAsyncProvider.kt index 5185b08889d2..94ff1fefbc67 100644 --- a/platform/lang-impl/src/com/intellij/ide/util/gotoByName/ActionAsyncProvider.kt +++ b/platform/lang-impl/src/com/intellij/ide/util/gotoByName/ActionAsyncProvider.kt @@ -83,7 +83,16 @@ class ActionAsyncProvider(private val model: GotoActionModel) { pattern: String, consumer: suspend (MatchedValue) -> Boolean, ) { - if (pattern.isEmpty()) return + return filterElementsSuspend(presentationProvider, pattern, false, consumer) + } + + suspend fun filterElementsSuspend( + presentationProvider: suspend (AnAction) -> Presentation, + pattern: String, + allowEmpty: Boolean, + consumer: suspend (MatchedValue) -> Boolean, + ) { + if (!allowEmpty && pattern.isEmpty()) return LOG.debug { "Start actions searching ($pattern) from suspend function" } diff --git a/plugins/evaluation-plugin/languages/staticdataset/askai/askai_keycloak_dataset.json b/plugins/evaluation-plugin/languages/staticdataset/askai/askai_keycloak_dataset.json index 5c55b188fa1d..538ebdb4f882 100644 --- a/plugins/evaluation-plugin/languages/staticdataset/askai/askai_keycloak_dataset.json +++ b/plugins/evaluation-plugin/languages/staticdataset/askai/askai_keycloak_dataset.json @@ -12,8 +12,7 @@ "location": "PROJECT", "features": [], "additional": { - "prompt": "restart the ide", - "expectedInteractions": "Action#RestartIde" + "prompt": "restart the ide" } }, "type": "CALL_FEATURE" @@ -27,8 +26,7 @@ "location": "PROJECT", "features": [], "additional": { - "prompt": "enable zoom with ctrl mouse wheel", - "expectedInteractions": "Setting#Change font size with Command+Mouse Wheel in:=true" + "prompt": "enable zoom with ctrl mouse wheel" } }, "type": "CALL_FEATURE" @@ -42,8 +40,7 @@ "location": "PROJECT", "features": [], "additional": { - "prompt": "Open root pom.xml", - "expectedInteractions": "EditorOpen#pom.xml" + "prompt": "Open root pom.xml" } }, "type": "CALL_FEATURE" @@ -57,8 +54,7 @@ "location": "PROJECT", "features": [], "additional": { - "prompt": "Run the project", - "expectedInteractions": "TODO:check action" + "prompt": "Run the project" } }, "type": "CALL_FEATURE" @@ -72,8 +68,7 @@ "location": "PROJECT", "features": [], "additional": { - "prompt": "Debug the project", - "expectedInteractions": "TODO:check action" + "prompt": "Debug the project" } }, "type": "CALL_FEATURE" @@ -87,8 +82,7 @@ "location": "PROJECT", "features": [], "additional": { - "prompt": "Open git log", - "expectedInteractions": "TODO:check action" + "prompt": "Open git log" } }, "type": "CALL_FEATURE" @@ -102,8 +96,7 @@ "location": "PROJECT", "features": [], "additional": { - "prompt": "Drop last 3 commits", - "expectedInteractions": "TODO:check action" + "prompt": "Drop last 3 commits" } }, "type": "CALL_FEATURE" @@ -117,8 +110,7 @@ "location": "PROJECT", "features": [], "additional": { - "prompt": "What is detached head", - "expectedInteractions": "TODO:check answer" + "prompt": "What is detached head" } }, "type": "CALL_FEATURE" @@ -132,8 +124,7 @@ "location": "PROJECT", "features": [], "additional": { - "prompt": "How exportRealm is typically used?", - "expectedInteractions": "TODO:check answer" + "prompt": "How exportRealm is typically used?" } }, "type": "CALL_FEATURE" @@ -147,8 +138,7 @@ "location": "PROJECT", "features": [], "additional": { - "prompt": "reset all to the previous commit and build project", - "expectedInteractions": "TODO:check answer" + "prompt": "reset all to the previous commit and build project" } }, "type": "CALL_FEATURE" @@ -162,8 +152,7 @@ "location": "PROJECT", "features": [], "additional": { - "prompt": "My eyes are hurting looking at the IDE", - "expectedInteractions": "TODO:check answer" + "prompt": "My eyes are hurting looking at the IDE" } }, "type": "CALL_FEATURE" @@ -194,8 +183,7 @@ "location": "PROJECT", "features": [], "additional": { - "prompt": "Reformat changed code", - "expectedInteractions": "TODO:check that only changed lines are reformatted" + "prompt": "Reformat changed code" } }, "type": "CALL_FEATURE" @@ -219,8 +207,7 @@ "location": "PROJECT", "features": [], "additional": { - "prompt": "find all usages of `WebApplicationException`", - "expectedInteractions": "TODO:check find usages results" + "prompt": "find all usages of `WebApplicationException`" } }, "type": "CALL_FEATURE" @@ -234,8 +221,7 @@ "location": "PROJECT", "features": [], "additional": { - "prompt": "find all usages of `WebApplicationException` without usages in imports", - "expectedInteractions": "TODO:check find usages results" + "prompt": "find all usages of `WebApplicationException` without usages in imports" } }, "type": "CALL_FEATURE" @@ -249,8 +235,7 @@ "location": "PROJECT", "features": [], "additional": { - "prompt": "where is the main authorization code", - "expectedInteractions": "TODO:check search results" + "prompt": "where is the main authorization code" } }, "type": "CALL_FEATURE" @@ -264,8 +249,7 @@ "location": "PROJECT", "features": [], "additional": { - "prompt": "find tests for auth API", - "expectedInteractions": "TODO:check search results" + "prompt": "find tests for auth API" } }, "type": "CALL_FEATURE" @@ -285,8 +269,7 @@ "location": "PROJECT", "features": [], "additional": { - "prompt": "rename ExportUtils to ExportUtil", - "expectedInteractions": "TODO:check rename result" + "prompt": "rename ExportUtils to ExportUtil" } }, "type": "CALL_FEATURE" @@ -306,8 +289,7 @@ "location": "PROJECT", "features": [], "additional": { - "prompt": "does this have any tests", - "expectedInteractions": "TODO:check search results" + "prompt": "does this have any tests" } }, "type": "CALL_FEATURE" @@ -327,8 +309,7 @@ "location": "PROJECT", "features": [], "additional": { - "prompt": "Add a breakpoint at every place where `rep` is changed", - "expectedInteractions": "TODO:check search results" + "prompt": "Add a breakpoint at every place where `rep` is changed" } }, "type": "CALL_FEATURE"