mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-08-03 17:58:17 +00:00
build: bump world crates to 0.13.12-rc1 (#1608)
* refactor: move `debug_loc` * build: fix rev * build: bump tinymist inner version * build: bump tinymist world version * build: bump world crates to 0.13.12-rc1 * fix: used bad patch * fix: clippy errors
This commit is contained in:
parent
4844419bd8
commit
71116758ef
34 changed files with 148 additions and 155 deletions
|
@ -43,7 +43,7 @@ pub fn analyze_call(
|
|||
source: Source,
|
||||
node: LinkedNode,
|
||||
) -> Option<Arc<CallInfo>> {
|
||||
log::trace!("func call found: {:?}", node);
|
||||
log::trace!("func call found: {node:?}");
|
||||
let call = node.cast::<ast::FuncCall>()?;
|
||||
|
||||
let callee = call.callee();
|
||||
|
|
|
@ -9,9 +9,9 @@ use once_cell::sync::OnceCell;
|
|||
use parking_lot::Mutex;
|
||||
use rustc_hash::FxHashMap;
|
||||
use tinymist_project::LspWorld;
|
||||
use tinymist_std::debug_loc::DataSource;
|
||||
use tinymist_std::hash::{hash128, FxDashMap};
|
||||
use tinymist_std::typst::TypstDocument;
|
||||
use tinymist_world::debug_loc::DataSource;
|
||||
use tinymist_world::vfs::{FileId, PathResolution, WorkspaceResolver};
|
||||
use tinymist_world::{EntryReader, DETACHED_ENTRY};
|
||||
use typst::diag::{eco_format, At, FileError, FileResult, SourceResult, StrResult};
|
||||
|
|
|
@ -2,8 +2,8 @@ use std::sync::Arc;
|
|||
use std::{collections::HashMap, path::PathBuf};
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
use tinymist_std::debug_loc::DataSource;
|
||||
use tinymist_std::typst::TypstDocument;
|
||||
use tinymist_world::debug_loc::DataSource;
|
||||
use typst::text::{Font, FontStretch, FontStyle, FontWeight};
|
||||
use typst::{
|
||||
layout::{Frame, FrameItem},
|
||||
|
|
|
@ -110,18 +110,18 @@ impl InlayHintWorker<'_> {
|
|||
match node.kind() {
|
||||
// Type inlay hints
|
||||
SyntaxKind::LetBinding => {
|
||||
log::trace!("let binding found: {:?}", node);
|
||||
log::trace!("let binding found: {node:?}");
|
||||
}
|
||||
// Assignment inlay hints
|
||||
SyntaxKind::Eq => {
|
||||
log::trace!("assignment found: {:?}", node);
|
||||
log::trace!("assignment found: {node:?}");
|
||||
}
|
||||
SyntaxKind::DestructAssignment => {
|
||||
log::trace!("destruct assignment found: {:?}", node);
|
||||
log::trace!("destruct assignment found: {node:?}");
|
||||
}
|
||||
// Parameter inlay hints
|
||||
SyntaxKind::FuncCall => {
|
||||
log::trace!("func call found: {:?}", node);
|
||||
log::trace!("func call found: {node:?}");
|
||||
let call_info = analyze_call(self.ctx, self.source.clone(), node.clone())?;
|
||||
crate::log_debug_ct!("got call_info {call_info:?}");
|
||||
|
||||
|
@ -264,7 +264,7 @@ impl InlayHintWorker<'_> {
|
|||
// todo: union signatures
|
||||
}
|
||||
SyntaxKind::Set => {
|
||||
log::trace!("set rule found: {:?}", node);
|
||||
log::trace!("set rule found: {node:?}");
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
use std::num::NonZeroUsize;
|
||||
|
||||
use tinymist_project::LspWorld;
|
||||
use tinymist_std::{debug_loc::SourceSpanOffset, typst::TypstDocument};
|
||||
use tinymist_std::typst::TypstDocument;
|
||||
use tinymist_world::debug_loc::SourceSpanOffset;
|
||||
use typst::{
|
||||
layout::{Frame, FrameItem, Point, Position, Size},
|
||||
syntax::{LinkedNode, Source, Span, SyntaxKind},
|
||||
|
|
|
@ -31,7 +31,7 @@ pub fn construct_module_dependencies(
|
|||
Err(err) => {
|
||||
static WARN_ONCE: Once = Once::new();
|
||||
WARN_ONCE.call_once(|| {
|
||||
log::warn!("construct_module_dependencies: {err:?}", err = err);
|
||||
log::warn!("construct_module_dependencies: {err:?}");
|
||||
});
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -11,9 +11,9 @@ use std::{
|
|||
use once_cell::sync::Lazy;
|
||||
use serde_json::{ser::PrettyFormatter, Serializer, Value};
|
||||
use tinymist_project::{CompileFontArgs, ExportTarget, LspCompileSnapshot, LspComputeGraph};
|
||||
use tinymist_std::debug_loc::LspRange;
|
||||
use tinymist_std::path::unix_slash;
|
||||
use tinymist_std::typst::TypstDocument;
|
||||
use tinymist_world::debug_loc::LspRange;
|
||||
use tinymist_world::package::PackageSpec;
|
||||
use tinymist_world::vfs::WorkspaceResolver;
|
||||
use tinymist_world::{EntryManager, EntryReader, EntryState, ShadowApi, TaskInputs};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue