feat: convert TypstDocument to enum (#1256)

* feat: convert `TypstDocument` to enum

* fix: errors

* build: update cargo.lock

* fix: warnings

* fix: error

* html changes

* Revert "html changes"

This reverts commit f9fc0e4872.

* Revert "Revert "html changes""

This reverts commit 7dc554a9e4.

* use std typst docs

* span

* paged

* paged

* html change

* paged

* html change

* bytes

* paged

* paged

* paged

* html changes

* paged

* html changes

* paged
This commit is contained in:
Myriad-Dreamin 2025-02-03 11:17:58 +08:00 committed by GitHub
parent 30a08e79ab
commit 3bc5f19cf5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 237 additions and 123 deletions

View file

@ -81,9 +81,8 @@ pub use lsp_typst_boundary::*;
mod prelude;
use std::sync::Arc;
use typst::{model::Document as TypstDocument, syntax::Source};
use tinymist_std::typst::TypstDocument;
use typst::syntax::Source;
/// The physical position in a document.
pub type FramePosition = typst::layout::Position;
@ -96,7 +95,7 @@ pub struct VersionedDocument {
/// The version of the document.
pub version: usize,
/// The compiled document.
pub document: Arc<TypstDocument>,
pub document: TypstDocument,
}
/// A request handler with given syntax information.