File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
marker/src/main/kotlin/spp/jetbrains/marker Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ package spp.jetbrains.marker
1919import com.google.common.collect.ImmutableList
2020import com.google.common.collect.Lists
2121import com.google.common.collect.Maps
22+ import com.intellij.openapi.application.ApplicationManager
2223import com.intellij.openapi.diagnostic.logger
2324import com.intellij.openapi.project.Project
2425import com.intellij.openapi.util.Key
@@ -103,9 +104,11 @@ class SourceMarker(private val project: Project) {
103104 } else if (psiFile.virtualFile == null || ! psiFile.virtualFile.isInLocalFileSystem) {
104105 log.warn(" Skipping in-memory/non-local file: $psiFile " )
105106 return null
106- } else if (! SourceStatusService .getInstance(project).isConnected()) {
107- log.warn(" Not connected, skipping source file marker creation for: $psiFile " )
108- return null
107+ } else if (! ApplicationManager .getApplication().isUnitTestMode) {
108+ if (! SourceStatusService .getInstance(project).isConnected()) {
109+ log.warn(" Not connected, skipping source file marker creation for: $psiFile " )
110+ return null
111+ }
109112 }
110113
111114 fileMarker = configuration.sourceFileMarkerProvider.createSourceFileMarker(psiFile)
You can’t perform that action at this time.
0 commit comments