mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-22 20:35:20 +00:00
feat: support untitled url scheme for unsaved documents (#120)
This commit is contained in:
parent
d53bd80d14
commit
529b422189
17 changed files with 202 additions and 100 deletions
|
|
@ -48,7 +48,7 @@ impl SemanticRequest for RenameRequest {
|
|||
let def_source = ctx.source_by_id(lnk.fid).ok()?;
|
||||
|
||||
let span_path = ctx.path_for_id(lnk.fid).ok()?;
|
||||
let uri = Url::from_file_path(span_path).ok()?;
|
||||
let uri = path_to_url(&span_path).ok()?;
|
||||
|
||||
let Some(range) = lnk.name_range else {
|
||||
log::warn!("rename: no name range");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue