From 6c34c4119f03d07b98bcec5bfa0dfe38ba58c01d Mon Sep 17 00:00:00 2001 From: "xiarui.xr" Date: Mon, 9 Oct 2023 15:15:09 +0800 Subject: [PATCH] fix bug after code merge --- kclvm/tools/src/LSP/src/goto_def.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kclvm/tools/src/LSP/src/goto_def.rs b/kclvm/tools/src/LSP/src/goto_def.rs index 2693dbfbb..bd85a1c77 100644 --- a/kclvm/tools/src/LSP/src/goto_def.rs +++ b/kclvm/tools/src/LSP/src/goto_def.rs @@ -225,7 +225,7 @@ pub(crate) fn resolve_var( obj.doc = doc; obj.start = node_names[0].get_pos(); obj.end = node_names[0].get_end_pos(); - Some(Definition::Object(obj)) + Some(Definition::Object(obj, name)) } None => None, },