Skip to content

Commit

Permalink
wait for parsing to finish in didChange test
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaBatty committed Jan 5, 2024
1 parent 10fd747 commit bfd6eb3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sway-lsp/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ async fn did_change() {
let (mut service, _) = LspService::new(ServerState::new);
let uri = init_and_open(&mut service, doc_comments_dir().join("src/main.sw")).await;
let _ = lsp::did_change_request(&mut service, &uri, 1).await;
service.inner().wait_for_parsing().await;
shutdown_and_exit(&mut service).await;
}

Expand Down

0 comments on commit bfd6eb3

Please sign in to comment.