You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Raise a [textDocument/definition](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_definition) request to the Language Server
1764
1761
for the symbol at the given line and column in the given file. Wait for the response and return the result.
1765
1762
1766
-
:param relative_file_path: The relative path of the file that has the symbol for which definition should be looked up
1767
-
:param line: The line number of the symbol
1768
-
:param column: The column number of the symbol
1763
+
:param file_path: The path of the file relative to the repository root.
1764
+
:param line: The line number (zero-indexed).
1765
+
:param column: The column number (zero-indexed).
1769
1766
1770
-
:return List[multilspy_types.Location]: A list of locations where the symbol is defined
1767
+
:return: A list of Locations defining the symbol.
1771
1768
"""
1769
+
ifnotself.is_running():
1770
+
raiseRuntimeError("Language server is not running. Cannot make requests to a stopped language server.")
Raise a [textDocument/references](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_references) request to the Language Server
1780
-
to find references to the symbol at the given line and column in the given file. Wait for the response and return the result.
1779
+
Raises a [textDocument/references](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_references) request to the Language Server
1780
+
for the symbol at the given line and column in the given file. Wait for the response and return the result.
1781
1781
1782
-
:param relative_file_path: The relative path of the file that has the symbol for which references should be looked up
1783
-
:param line: The line number of the symbol
1784
-
:param column: The column number of the symbol
1782
+
:param file_path: The path of the file relative to the repository root.
1783
+
:param line: The line number (zero-indexed).
1784
+
:param column: The column number (zero-indexed).
1785
1785
1786
-
:return List[multilspy_types.Location]: A list of locations where the symbol is referenced
1786
+
:return: A list of Locations referencing the symbol.
1787
1787
"""
1788
+
ifnotself.is_running():
1789
+
raiseRuntimeError("Language server is not running. Cannot make requests to a stopped language server.")
0 commit comments