@@ -11,15 +11,15 @@ use compiler::compile::{
1111use geometry:: transform:: TransformationMatrix ;
1212use gpui:: * ;
1313use indexmap:: { IndexMap , IndexSet } ;
14- use lsp_server :: rpc:: GuiToLspAction ;
14+ use lang_server :: rpc:: LangServerAction ;
1515use rgb:: Rgb ;
1616use toolbars:: { HierarchySideBar , LayerSideBar , TitleBar , ToolBar } ;
1717use tower_lsp:: lsp_types:: MessageType ;
1818
1919use crate :: {
2020 actions:: { Redo , Undo } ,
2121 editor:: { canvas:: ToolState , input:: TextInput } ,
22- rpc:: SyncGuiToLspClient ,
22+ rpc:: SyncLangServerClient ,
2323 theme:: { DARK_THEME , LIGHT_THEME , Theme } ,
2424} ;
2525
@@ -74,7 +74,7 @@ pub struct EditorState {
7474 pub solved_cell : Entity < Option < CompileOutputState > > ,
7575 pub hide_external_geometry : bool ,
7676 pub layers : Entity < Layers > ,
77- pub lsp_client : SyncGuiToLspClient ,
77+ pub lang_server_client : SyncLangServerClient ,
7878 pub subscriptions : Vec < Subscription > ,
7979 pub ( crate ) tool : Entity < ToolState > ,
8080}
@@ -234,7 +234,7 @@ impl EditorState {
234234 . iter ( )
235235 . any ( |e| matches ! ( e. kind, ExecErrorKind :: InvalidCell ) )
236236 {
237- self . lsp_client
237+ self . lang_server_client
238238 . show_message ( MessageType :: ERROR , "Open cell is invalid" ) ;
239239 return ;
240240 }
@@ -311,8 +311,8 @@ impl EditorState {
311311}
312312
313313impl Editor {
314- pub fn new ( cx : & mut Context < Self > , window : & mut Window , lsp_addr : SocketAddr ) -> Self {
315- let lsp_client = SyncGuiToLspClient :: new ( cx. to_async ( ) , lsp_addr ) ;
314+ pub fn new ( cx : & mut Context < Self > , window : & mut Window , lang_server_addr : SocketAddr ) -> Self {
315+ let lang_server_client = SyncLangServerClient :: new ( cx. to_async ( ) , lang_server_addr ) ;
316316 let solved_cell = cx. new ( |_cx| None ) ;
317317 let tool = cx. new ( |_cx| ToolState :: default ( ) ) ;
318318 let layers = cx. new ( |_cx| Layers {
@@ -332,7 +332,7 @@ impl Editor {
332332 tool,
333333 layers,
334334 subscriptions,
335- lsp_client : lsp_client . clone ( ) ,
335+ lang_server_client : lang_server_client . clone ( ) ,
336336 }
337337 } ) ;
338338 let title_bar = cx. new ( |_cx| TitleBar :: new ( & state) ) ;
@@ -362,7 +362,7 @@ impl Editor {
362362 canvas,
363363 text_input,
364364 } ;
365- lsp_client . register_server ( editor. clone ( ) ) ;
365+ lang_server_client . register_server ( editor. clone ( ) ) ;
366366
367367 editor
368368 }
@@ -425,15 +425,15 @@ impl Editor {
425425 fn on_undo ( & mut self , _: & Undo , _window : & mut Window , cx : & mut Context < Self > ) {
426426 self . state
427427 . read ( cx)
428- . lsp_client
429- . dispatch_action ( GuiToLspAction :: Undo ) ;
428+ . lang_server_client
429+ . dispatch_action ( LangServerAction :: Undo ) ;
430430 }
431431
432432 fn on_redo ( & mut self , _: & Redo , _window : & mut Window , cx : & mut Context < Self > ) {
433433 self . state
434434 . read ( cx)
435- . lsp_client
436- . dispatch_action ( GuiToLspAction :: Redo ) ;
435+ . lang_server_client
436+ . dispatch_action ( LangServerAction :: Redo ) ;
437437 }
438438
439439 fn theme ( & self , cx : & mut Context < Self > ) -> & ' static Theme {
0 commit comments