diff --git a/kclvm/tools/src/LSP/src/test_data/goto_def_test/goto_def.k b/kclvm/tools/src/LSP/src/test_data/goto_def_test/goto_def.k index b792e5164..2451eba9c 100644 --- a/kclvm/tools/src/LSP/src/test_data/goto_def_test/goto_def.k +++ b/kclvm/tools/src/LSP/src/test_data/goto_def_test/goto_def.k @@ -53,6 +53,7 @@ fib8 = Fib {n = 8}.value schema_map: {str: Person} = { person: p2 + person1: p2 } p3 = schema_map.person.n.name \ No newline at end of file diff --git a/kclvm/tools/src/LSP/src/tests.rs b/kclvm/tools/src/LSP/src/tests.rs index de1d29411..3d4c66b20 100644 --- a/kclvm/tools/src/LSP/src/tests.rs +++ b/kclvm/tools/src/LSP/src/tests.rs @@ -467,7 +467,7 @@ fn goto_dict_key_def_test() { let pos = KCLPos { filename: file.clone(), - line: 58, + line: 59, column: Some(28), }; let res = goto_definition(&program, &pos, &prog_scope);