mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-23 12:46:43 +00:00
refactor: simplify and document lsp_typst_boundary crate (#1049)
This commit is contained in:
parent
5db1cf984a
commit
497a1e0aea
18 changed files with 205 additions and 233 deletions
|
|
@ -27,10 +27,9 @@ use typst_shim::syntax::LinkedNodeExt;
|
|||
|
||||
use crate::syntax::find_module_level_docs;
|
||||
use crate::{
|
||||
analysis::Analysis, prelude::LocalContext, typst_to_lsp, LspPosition, PositionEncoding,
|
||||
VersionedDocument,
|
||||
analysis::Analysis, prelude::LocalContext, LspPosition, PositionEncoding, VersionedDocument,
|
||||
};
|
||||
use crate::{CompletionFeat, LspWorldExt};
|
||||
use crate::{to_lsp_position, CompletionFeat, LspWorldExt};
|
||||
|
||||
type CompileDriver<C> = CompileDriverImpl<C, tinymist_world::LspCompilerFeat>;
|
||||
|
||||
|
|
@ -330,7 +329,7 @@ pub fn find_test_position_(s: &Source, offset: usize) -> LspPosition {
|
|||
break;
|
||||
}
|
||||
|
||||
typst_to_lsp::offset_to_position(n.offset() + offset, PositionEncoding::Utf16, s)
|
||||
to_lsp_position(n.offset() + offset, PositionEncoding::Utf16, s)
|
||||
}
|
||||
|
||||
// pub static REDACT_URI: Lazy<RedactFields> = Lazy::new(||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue