aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/lsp/document.py
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2023-01-26 18:45:51 +0100
committerTristan Gingold <tgingold@free.fr>2023-01-26 21:56:35 +0100
commit85fab1d4d93587643eed9d76bd9d601e3c563656 (patch)
tree311f62e2e556619d3fb70b93f7e1cf8161c3da53 /pyGHDL/lsp/document.py
parenteb1a2fc862bfa3196978673cfb29dc00139deadd (diff)
downloadghdl-85fab1d4d93587643eed9d76bd9d601e3c563656.tar.gz
ghdl-85fab1d4d93587643eed9d76bd9d601e3c563656.tar.bz2
ghdl-85fab1d4d93587643eed9d76bd9d601e3c563656.zip
pyGHDL/lsp: add goto implementation
Diffstat (limited to 'pyGHDL/lsp/document.py')
-rw-r--r--pyGHDL/lsp/document.py2
1 files changed, 1 insertions, 1 deletions
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)