File tree Expand file tree Collapse file tree
src/main/kotlin/io/github/ethersync/sync Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ import com.intellij.openapi.fileEditor.TextEditor
1212import com.intellij.openapi.project.Project
1313import com.intellij.openapi.rd.util.withUiContext
1414import com.intellij.ui.JBColor
15- import com.intellij.util.io.await
1615import io.github.ethersync.protocol.CursorEvent
1716import io.github.ethersync.protocol.CursorRequest
1817import io.github.ethersync.protocol.RemoteEthersyncClientProtocol
1918import kotlinx.coroutines.CoroutineScope
2019import kotlinx.coroutines.Dispatchers
20+ import kotlinx.coroutines.future.await
2121import kotlinx.coroutines.launch
2222import kotlinx.coroutines.withContext
2323import org.eclipse.lsp4j.Position
@@ -49,7 +49,7 @@ class Cursortracker(
4949 val editor = fileEditor.editor
5050
5151 cs.launch {
52- withUiContext {
52+ withContext( Dispatchers . EDT ) {
5353 synchronized(highlighter) {
5454 val markupModel = editor.markupModel
5555
You can’t perform that action at this time.
0 commit comments