Skip to content

Commit 34188ab

Browse files
Fix compiler warning
1 parent ab641f4 commit 34188ab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/kotlin/io/github/ethersync/sync/Cursortracker.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ import com.intellij.openapi.fileEditor.TextEditor
1212
import com.intellij.openapi.project.Project
1313
import com.intellij.openapi.rd.util.withUiContext
1414
import com.intellij.ui.JBColor
15-
import com.intellij.util.io.await
1615
import io.github.ethersync.protocol.CursorEvent
1716
import io.github.ethersync.protocol.CursorRequest
1817
import io.github.ethersync.protocol.RemoteEthersyncClientProtocol
1918
import kotlinx.coroutines.CoroutineScope
2019
import kotlinx.coroutines.Dispatchers
20+
import kotlinx.coroutines.future.await
2121
import kotlinx.coroutines.launch
2222
import kotlinx.coroutines.withContext
2323
import 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

0 commit comments

Comments
 (0)