We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c13eba0 commit b9e50f9Copy full SHA for b9e50f9
utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/js/JsDialogWindow.kt
@@ -41,9 +41,23 @@ class JsDialogWindow(val model: JsTestsModel): DialogWrapper(model.project) {
41
}
42
43
initDefaultValues()
44
+ checkBoxUpdate()
45
return panel
46
47
48
+ private fun checkBoxUpdate() {
49
+ if (items == null) return
50
+ val focusedNames = model.focusedMethod?.map { it.name }
51
+ val selectedMethods = items.filter {
52
+ focusedNames?.contains(it.member.name) ?: false
53
+ }
54
+ if (selectedMethods.isEmpty()) {
55
+ checkMembers(items)
56
+ } else {
57
+ checkMembers(selectedMethods)
58
59
60
+
61
private fun initDefaultValues() {
62
63
0 commit comments