File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
marker/src/main/kotlin/spp/jetbrains/marker/source/info Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 16
16
*/
17
17
package spp.jetbrains.marker.source.info
18
18
19
+ import com.intellij.openapi.application.ApplicationManager
19
20
import com.intellij.openapi.diagnostic.logger
20
21
import com.intellij.openapi.project.Project
21
22
import com.intellij.openapi.util.Key
@@ -53,6 +54,12 @@ abstract class EndpointDetector<T : EndpointDetector.EndpointNameDeterminer>(val
53
54
private val skywalkingMonitor by lazy { project.getUserData(SkywalkingMonitorService .KEY )!! }
54
55
55
56
init {
57
+ if (! ApplicationManager .getApplication().isUnitTestMode) {
58
+ setupRedetector()
59
+ }
60
+ }
61
+
62
+ private fun setupRedetector () {
56
63
if (project.getUserData(REDETECTOR_SETUP ) != true ) {
57
64
project.putUserData(REDETECTOR_SETUP , true )
58
65
log.info(" Setting up endpoint re-detector for project ${project.name} " )
You can’t perform that action at this time.
0 commit comments