feat: read and check type annotations in docstring (Part. 1) (#679)

* feat: read and check type annotations in docstring

* fix: remove test.snap in playground

* chore: refactor and remove some dirty changes
This commit is contained in:
Myriad-Dreamin 2024-10-15 14:52:50 +08:00 committed by GitHub
parent c8e11e92f1
commit 3ed401740e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 407 additions and 99 deletions

View file

@ -34,7 +34,7 @@ type CompileDriver<C> = CompileDriverImpl<C, tinymist_world::LspCompilerFeat>;
struct WrapWorld<'a>(&'a mut LspWorld);
impl<'a> AnalysisResources for WrapWorld<'a> {
fn world(&self) -> &dyn typst::World {
fn world(&self) -> &LspWorld {
self.0
}