File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed
utbot-intellij/src/main/resources/META-INF
utbot-ui-commons/src/main/kotlin/org/utbot/intellij/plugin Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,10 @@ allprojects {
110
110
" --add-opens" , " java.base/jdk.internal.vm.annotation=ALL-UNNAMED"
111
111
)
112
112
113
+ withType<Jar > {
114
+ duplicatesStrategy = DuplicatesStrategy .EXCLUDE
115
+ }
116
+
113
117
useJUnitPlatform {
114
118
excludeTags = setOf (" slow" , " IntegrationTest" )
115
119
}
Original file line number Diff line number Diff line change 30
30
id =" org.utbot.intellij.plugin.settings.Configurable"
31
31
displayName =" UnitTestBot" />
32
32
<!-- suppress PluginXmlValidity -->
33
- <projectService serviceImplementation =" org.utbot.intellij.plugin.settings.Settings" preload =" true" />
34
33
<registryKey defaultValue =" false" description =" Enable editing Kotlin test files" key =" kotlin.ultra.light.classes.empty.text.range" />
35
34
<postStartupActivity implementation =" org.utbot.intellij.plugin.ui.GotItTooltipActivity" />
36
35
<projectModelModifier implementation =" org.androidstudio.plugin.util.UtAndroidGradleJavaProjectModelModifierWrapper" order =" first" />
Original file line number Diff line number Diff line change 3
3
package org.utbot.intellij.plugin.settings
4
4
5
5
import com.intellij.openapi.components.PersistentStateComponent
6
+ import com.intellij.openapi.components.Service
6
7
import com.intellij.openapi.components.State
7
8
import com.intellij.openapi.components.Storage
8
9
import com.intellij.openapi.project.Project
@@ -44,6 +45,7 @@ import org.utbot.framework.plugin.api.isSummarizationCompatible
44
45
name = " UtBotSettings" ,
45
46
storages = [Storage (" utbot-settings.xml" )]
46
47
)
48
+ @Service(Service .Level .PROJECT )
47
49
class Settings (val project : Project ) : PersistentStateComponent<Settings.State> {
48
50
data class State (
49
51
var sourceRootHistory : MutableList <String > = mutableListOf(),
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import com.intellij.openapi.application.ApplicationManager
11
11
import com.intellij.openapi.keymap.KeymapUtil
12
12
import com.intellij.openapi.module.Module
13
13
import com.intellij.openapi.project.Project
14
- import com.intellij.openapi.startup.StartupActivity
14
+ import com.intellij.openapi.startup.ProjectActivity
15
15
import com.intellij.openapi.wm.WindowManager
16
16
import com.intellij.ui.GotItTooltip
17
17
import javax.swing.event.HyperlinkEvent
@@ -187,9 +187,9 @@ object TestReportUrlOpeningListener: NotificationListener.Adapter() {
187
187
callbacks[descriptionSuffix]?.map { it() } ? : error(" No such command with #utbot prefix: $descriptionSuffix " )
188
188
}
189
189
190
- object GotItTooltipActivity : StartupActivity {
190
+ object GotItTooltipActivity : ProjectActivity {
191
191
private const val KEY = " UTBot.GotItMessageWasShown"
192
- override fun runActivity (project : Project ) {
192
+ override suspend fun execute (project : Project ) {
193
193
ApplicationManager .getApplication().invokeLater {
194
194
val shortcut = ActionManager .getInstance()
195
195
.getKeyboardShortcut(" org.utbot.intellij.plugin.ui.actions.GenerateTestsAction" )? : return @invokeLater
You can’t perform that action at this time.
0 commit comments