diff --git a/sway-lsp/src/server_state.rs b/sway-lsp/src/server_state.rs index fe6c5f502fd..f2a96ab789d 100644 --- a/sway-lsp/src/server_state.rs +++ b/sway-lsp/src/server_state.rs @@ -88,7 +88,7 @@ impl ServerState { version: Option, session: Arc, ) { - match run_blocking_parse_project(uri.clone(), version.clone(), session.clone()).await { + match run_blocking_parse_project(uri.clone(), version, session.clone()).await { Ok(_) => { // Note: Even if the computed diagnostics vec is empty, we still have to push the empty Vec // in order to clear former diagnostics. Newly pushed diagnostics always replace previously pushed diagnostics.