Skip to content

Commit

Permalink
Merge pull request #12 from trocher/fix/param_type
Browse files Browse the repository at this point in the history
fix: type of Reference params
  • Loading branch information
z80dev authored Oct 22, 2024
2 parents ca6a1c8 + 41d16cb commit 6aac35e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vyper_lsp/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
CompletionParams,
CompletionList,
DeclarationParams,
ReferenceParams,
DefinitionParams,
HoverParams,
Hover,
Expand Down Expand Up @@ -130,7 +131,7 @@ def go_to_definition(


@server.feature(TEXT_DOCUMENT_REFERENCES)
def find_references(ls: LanguageServer, params: DefinitionParams) -> List[Location]:
def find_references(ls: LanguageServer, params: ReferenceParams) -> List[Location]:
document = ls.workspace.get_text_document(params.text_document.uri)
return [
Location(uri=params.text_document.uri, range=range_)
Expand Down

0 comments on commit 6aac35e

Please sign in to comment.