ProjectManager.DefinitionLocation(TextDocumentPositionParams) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the source file and position where the item at the given position is declared at, if such a declaration exists, and returns null otherwise.
public Microsoft.VisualStudio.LanguageServer.Protocol.Location? DefinitionLocation (Microsoft.VisualStudio.LanguageServer.Protocol.TextDocumentPositionParams? param);
member this.DefinitionLocation : Microsoft.VisualStudio.LanguageServer.Protocol.TextDocumentPositionParams -> Microsoft.VisualStudio.LanguageServer.Protocol.Location
Public Function DefinitionLocation (param As TextDocumentPositionParams) As Location
Parameters
Returns
Remarks
Fails silently without logging anything if an exception occurs upon evaluating the query (occasional failures are to be expected as the evaluation is a readonly query running in parallel to the ongoing processing).