mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-22 12:34:39 +00:00
dev: reduce a bundle of ts usage in query crate (#72)
This commit is contained in:
parent
c6509325a8
commit
cc1f418423
25 changed files with 204 additions and 117 deletions
|
|
@ -47,7 +47,7 @@ impl SyntaxRequest for RenameRequest {
|
|||
let def_loc = {
|
||||
let def_source = ctx.source_by_id(lnk.fid).ok()?;
|
||||
|
||||
let span_path = ctx.world.path_for_id(lnk.fid).ok()?;
|
||||
let span_path = ctx.path_for_id(lnk.fid).ok()?;
|
||||
let uri = Url::from_file_path(span_path).ok()?;
|
||||
|
||||
let Some(range) = lnk.name_range else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue