Skip to content

Commit ad8cfac

Browse files
committed
sf
1 parent b7beb1f commit ad8cfac

File tree

1 file changed

+2
-1
lines changed
  • plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp

1 file changed

+2
-1
lines changed

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLspService.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import kotlinx.coroutines.Deferred
2727
import kotlinx.coroutines.async
2828
import kotlinx.coroutines.channels.BufferOverflow
2929
import kotlinx.coroutines.flow.MutableSharedFlow
30+
import kotlinx.coroutines.flow.asSharedFlow
3031
import kotlinx.coroutines.flow.map
3132
import kotlinx.coroutines.future.asCompletableFuture
3233
import kotlinx.coroutines.runBlocking
@@ -117,7 +118,7 @@ internal class LSPProcessListener : ProcessListener {
117118
@Service(Service.Level.PROJECT)
118119
class AmazonQLspService(private val project: Project, private val cs: CoroutineScope) : Disposable {
119120
private val _flowInstance = MutableSharedFlow<AmazonQServerInstance>(replay = 1, onBufferOverflow = BufferOverflow.DROP_OLDEST)
120-
val instanceFlow = _flowInstance.map { it.languageServer }
121+
val instanceFlow = _flowInstance.asSharedFlow().map { it.languageServer }
121122

122123
private var instance: Deferred<AmazonQServerInstance>
123124
val capabilities

0 commit comments

Comments
 (0)