File tree 1 file changed +2
-1
lines changed
scala/scala-impl/src/org/jetbrains/plugins/scala/incremental
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import com.intellij.openapi.editor.colors.EditorColorsScheme
10
10
import com .intellij .openapi .editor .ex .{EditorEx , MarkupModelEx }
11
11
import com .intellij .openapi .editor .markup .RangeHighlighter
12
12
import com .intellij .openapi .util .{Key , TextRange }
13
+ import org .jetbrains .plugins .scala .extensions .inReadAction
13
14
14
15
import java .awt .Color
15
16
import javax .swing .Timer
@@ -47,7 +48,7 @@ private class Updater(editor: Editor) extends Disposable {
47
48
if (! newlyVisibleRange.isEmpty) {
48
49
val document = editor.getDocument
49
50
val daemon = DaemonCodeAnalyzer .getInstance(editor.getProject)
50
- daemon.combineDirtyScopes(document, newlyVisibleRange)
51
+ inReadAction( daemon.combineDirtyScopes(document, newlyVisibleRange) )
51
52
daemon.stopProcess(/* restart = */ true )
52
53
}
53
54
You can’t perform that action at this time.
0 commit comments