@@ -47,7 +47,7 @@ use crate::message::try_show_message;
4747pub type Result < T > = std:: result:: Result < T , api:: Error > ;
4848
4949pub ( crate ) struct ServerArgs {
50- pub tokio_handle : tokio:: runtime:: Handle ,
50+ pub tokio_runtime : tokio:: runtime:: Runtime ,
5151 pub broadcast_tx : broadcast:: Sender < LangServerToWasmMessage > ,
5252 pub playground_rx : broadcast:: Receiver < PreLangServerToWasmMessage > ,
5353 pub playground_tx : broadcast:: Sender < PreLangServerToWasmMessage > ,
@@ -195,7 +195,7 @@ impl Server {
195195 {
196196 let lsp_sender = server. connection . make_sender ( ) ;
197197 let playground_tx = server. session . playground_tx . clone ( ) ;
198- server. args . tokio_handle . spawn ( async move {
198+ server. args . tokio_runtime . spawn ( async move {
199199 lsp_sender
200200 . send ( Message :: Notification ( lsp_server:: Notification :: new (
201201 "baml/port" . to_string ( ) ,
@@ -211,7 +211,7 @@ impl Server {
211211 let mut playground_rx = server. args . playground_rx . resubscribe ( ) ;
212212 let broadcast_tx = server. args . broadcast_tx . clone ( ) ;
213213 let session = server. session . clone ( ) ;
214- server. args . tokio_handle . spawn ( async move {
214+ server. args . tokio_runtime . spawn ( async move {
215215 tracing:: info!( "Starting playground rx loop" ) ;
216216 while let Ok ( msg) = playground_rx. recv ( ) . await {
217217 tracing:: info!( "playground rx loop: {:?}" , msg) ;
0 commit comments