Skip to content

Commit 67f15a6

Browse files
mmahroussfda-odoo
authored andcommitted
[FIX] get full ns path on go to def
1 parent fd02324 commit 67f15a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/features/definition.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ impl DefinitionFeature {
7676
}
7777
}
7878
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();
79+
let path = model_file_sym.borrow().get_symbol_first_path();
8080
let range = session.sync_odoo.get_file_mgr().borrow().text_range_to_range(session, &path, &class_symbol.range());
8181
model_found = true;
8282
links.push(LocationLink{

0 commit comments

Comments
 (0)