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 1c12fa2 commit 65c655eCopy full SHA for 65c655e
server/src/features/workspace_symbols.rs
@@ -114,10 +114,13 @@ impl WorkspaceSymbolFeature {
114
})
115
} else {
116
let file_info = session.sync_odoo.get_file_mgr().borrow().get_file_info(path);
117
+ let Some(range) = range else {
118
+ return;
119
+ };
120
if let Some(file_info) = file_info {
121
lsp_types::OneOf::Left(Location::new(
122
FileMgr::pathname2uri(path),
- file_info.borrow().text_range_to_range(symbol.range())
123
+ file_info.borrow().text_range_to_range(range)
124
))
125
126
return;
0 commit comments