We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b46348 commit e1da39fCopy full SHA for e1da39f
crates/emmylua_ls/src/handlers/rename/mod.rs
@@ -72,7 +72,8 @@ pub async fn on_prepare_rename_handler(
72
let semantic_model = analysis.compilation.get_semantic_model(file_id)?;
73
let root = semantic_model.get_root();
74
let document = semantic_model.get_document();
75
- let position_offset = document.get_offset(position.line as usize, position.character as usize)?;
+ let position_offset =
76
+ document.get_offset(position.line as usize, position.character as usize)?;
77
78
if position_offset > root.syntax().text_range().end() {
79
return None;
0 commit comments