diff --git a/sway-lsp/src/handlers/notification.rs b/sway-lsp/src/handlers/notification.rs index d62be57c69c..68c35a99802 100644 --- a/sway-lsp/src/handlers/notification.rs +++ b/sway-lsp/src/handlers/notification.rs @@ -106,7 +106,7 @@ pub async fn handle_did_change_text_document( &uri, Some(params.text_document.version as u64), ); - eprintln!("File versions: {:#?}", file_versions); + //eprintln!("File versions: {:#?}", file_versions); send_new_compilation_request( state, session.clone(), diff --git a/sway-lsp/src/server_state.rs b/sway-lsp/src/server_state.rs index bcb87afc33b..5e49f0b1cbf 100644 --- a/sway-lsp/src/server_state.rs +++ b/sway-lsp/src/server_state.rs @@ -378,6 +378,9 @@ impl ServerState { let session = self.sessions.get(&manifest_dir).unwrap_or({ // If no session can be found, then we need to call init and insert a new session into the map + eprintln!("💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥 Initializing new session for manifest_dir = {:?}", manifest_dir); + + self.init_session(uri).await?; self.sessions .get(&manifest_dir)