File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
crates/emmylua_ls/src/handlers/initialized Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -77,15 +77,6 @@ pub async fn initialized_handler(
7777 // init std lib
7878 init_std_lib ( context. analysis ( ) , & cmd_args, emmyrc. clone ( ) ) . await ;
7979
80- init_analysis (
81- context. analysis ( ) ,
82- context. status_bar ( ) ,
83- context. file_diagnostic ( ) ,
84- context. lsp_features ( ) ,
85- workspace_folders,
86- emmyrc. clone ( ) ,
87- )
88- . await ;
8980 {
9081 let mut workspace_manager = context. workspace_manager ( ) . write ( ) . await ;
9182 workspace_manager. client_config = client_config. clone ( ) ;
@@ -95,6 +86,17 @@ pub async fn initialized_handler(
9586 workspace_manager. set_workspace_initialized ( ) ;
9687 log:: info!( "workspace manager initialized" ) ;
9788 }
89+
90+ init_analysis (
91+ context. analysis ( ) ,
92+ context. status_bar ( ) ,
93+ context. file_diagnostic ( ) ,
94+ context. lsp_features ( ) ,
95+ workspace_folders,
96+ emmyrc. clone ( ) ,
97+ )
98+ . await ;
99+
98100 register_files_watch ( context. clone ( ) , & params. capabilities ) . await ;
99101 Some ( ( ) )
100102}
You can’t perform that action at this time.
0 commit comments