Skip to content

Commit

Permalink
Use diagnostics in pinned files in other export mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Myriad-Dreamin authored and nvarner committed Dec 29, 2023
1 parent 2f829f9 commit 2ac37c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/server/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ impl TypstServer {
self.run_diagnostics(uri).await?
}
}
_ => self.run_diagnostics(uri).await?,
_ => {
self.run_diagnostics(self.main_url().await.as_ref().unwrap_or(uri))
.await?
}
}

Ok(())
Expand Down

0 comments on commit 2ac37c0

Please sign in to comment.