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 fd02324 commit 67f15a6Copy full SHA for 67f15a6
server/src/features/definition.rs
@@ -76,7 +76,7 @@ impl DefinitionFeature {
76
}
77
78
if let Some(model_file_sym) = class_symbol.get_file().and_then(|model_file_sym_weak| model_file_sym_weak.upgrade()){
79
- let path = model_file_sym.borrow().paths()[0].clone();
+ let path = model_file_sym.borrow().get_symbol_first_path();
80
let range = session.sync_odoo.get_file_mgr().borrow().text_range_to_range(session, &path, &class_symbol.range());
81
model_found = true;
82
links.push(LocationLink{
0 commit comments