From 85fab1d4d93587643eed9d76bd9d601e3c563656 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Thu, 26 Jan 2023 18:45:51 +0100 Subject: pyGHDL/lsp: add goto implementation --- pyGHDL/lsp/document.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyGHDL/lsp/document.py') diff --git a/pyGHDL/lsp/document.py b/pyGHDL/lsp/document.py index 1a6a20f39..eec5c5bee 100644 --- a/pyGHDL/lsp/document.py +++ b/pyGHDL/lsp/document.py @@ -197,7 +197,7 @@ class Document(object): pos = files_map.File_Line_To_Position(self._fe, position["line"] + 1) return files_map.File_Pos_To_Location(self._fe, pos) + position["character"] - def goto_definition(self, position): + def find_definition(self, position): loc = self.position_to_location(position) return references.find_definition_by_loc(self._tree, loc) -- cgit v1.2.3