-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
For any given symbol usage, we want to be able to jump to the point in our code where the symbol was defined.
LSP API Methods
textDocument/definition
there is also potential overlap with the textDocument/declaration method to be explored as part of the implementation of this feature.
Variations of Definition Lookups
Variables
x: uint256
@external
def foo() -> uint256:
return self.xRunning Go To Definition on the usage of self.x within foo() should jump the cursor to the first line, where x is declared/defined.
Functions
x: uint256
@external
def foo() -> uint256:
return self.bar()
@internal
def bar() -> uint256:
return self.xRunning Go To Definition on the usage of self.bar() within foo() should jump the cursor to the line where the function bar() is declared
Metadata
Metadata
Assignees
Labels
No labels