MCPcopy
hub / github.com/oraios/serena / request_references

Method request_references

src/solidlsp/ls.py:1694–1707  ·  view source on GitHub ↗

Raise a [textDocument/references](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_references) request to the Language Server to find references to the symbol at the given line and column in the given file. Wait for the respons

(self, relative_file_path: str, line: int, column: int)

Source from the content-addressed store, hash-verified

1692 )
1693
1694 def request_references(self, relative_file_path: str, line: int, column: int) -> list[ls_types.Location]:
1695 """
1696 Raise a [textDocument/references](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_references) request to the Language Server
1697 to find references to the symbol at the given line and column in the given file. Wait for the response and return the result.
1698 Filters out references located in ignored directories.
1699
1700 :param relative_file_path: The relative path of the file that has the symbol for which references should be looked up
1701 :param line: The line number of the symbol
1702 :param column: The column number of the symbol
1703
1704 :return: A list of locations where the symbol is referenced (excluding ignored directories)
1705 """
1706 request = self.ReferencesLocationRequest(self, relative_file_path, line, column)
1707 return request.execute()
1708
1709 def retrieve_full_file_content(self, file_path: str) -> str:
1710 """

Calls 1

executeMethod · 0.45