File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
crates/emmylua_ls/src/handlers Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ pub async fn init_analysis(
9292 file_diagnostic : Arc < FileDiagnostic > ,
9393) {
9494 let mut mut_analysis = analysis. write ( ) . await ;
95-
95+
9696 // update config
9797 mut_analysis. update_config ( emmyrc. clone ( ) ) ;
9898
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ mod test_lib;
3131mod text_document;
3232mod workspace_symbol;
3333
34- pub use initialized:: { initialized_handler , ClientConfig , init_analysis } ;
34+ pub use initialized:: { init_analysis , initialized_handler , ClientConfig } ;
3535use lsp_types:: { ClientCapabilities , ServerCapabilities } ;
3636pub use notification_handler:: on_notification_handler;
3737pub use request_handler:: on_req_handler;
Original file line number Diff line number Diff line change @@ -109,7 +109,11 @@ pub async fn on_did_close_document(
109109 let analysis = context. analysis . read ( ) . await ;
110110 let uri = & params. text_document . uri ;
111111 let file_id = analysis. get_file_id ( uri) ?;
112- let module_info = analysis. compilation . get_db ( ) . get_module_index ( ) . get_module ( file_id) ;
112+ let module_info = analysis
113+ . compilation
114+ . get_db ( )
115+ . get_module_index ( )
116+ . get_module ( file_id) ;
113117 if module_info. is_none ( ) {
114118 drop ( analysis) ;
115119 let mut mut_analysis = context. analysis . write ( ) . await ;
You can’t perform that action at this time.
0 commit comments