mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 12:14:43 +00:00
Update rename.rs
This commit is contained in:
parent
1332b009b7
commit
f69e45f18b
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ impl<Checker: BuildRunnable, Parser: Parsable> Server<Checker, Parser> {
|
||||||
send_log(format!("rename request: {params:?}"))?;
|
send_log(format!("rename request: {params:?}"))?;
|
||||||
let uri = NormalizedUrl::new(params.text_document_position.text_document.uri);
|
let uri = NormalizedUrl::new(params.text_document_position.text_document.uri);
|
||||||
let pos = params.text_document_position.position;
|
let pos = params.text_document_position.position;
|
||||||
if let Some(tok) = self.file_cache.get_token(&uri, pos) {
|
if let Some(tok) = self.file_cache.get_symbol(&uri, pos) {
|
||||||
// send_log(format!("token: {tok}"))?;
|
// send_log(format!("token: {tok}"))?;
|
||||||
if let Some(vi) = self
|
if let Some(vi) = self
|
||||||
.get_visitor(&uri)
|
.get_visitor(&uri)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue