From 9897594fdbff89f455c254775f54de60c8ef8d73 Mon Sep 17 00:00:00 2001 From: light-ly Date: Tue, 24 Dec 2024 20:33:10 +0800 Subject: [PATCH] fix go to defination of vhdl --- src/definition/vhdl.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/definition/vhdl.rs b/src/definition/vhdl.rs index 22e1d60..15c5d5a 100644 --- a/src/definition/vhdl.rs +++ b/src/definition/vhdl.rs @@ -37,7 +37,7 @@ pub fn goto_vhdl_definition(server: &LspServer, params: &GotoDefinitionParams) - return None }; - let ents = global_project.project.find_implementation(&source, from_lsp_pos(pos)); + let ents = global_project.project.find_declaration(&source, from_lsp_pos(pos)); Some(GotoDefinitionResponse::Array( ents.into_iter()