ProjectManager.FileContentInMemory(TextDocumentIdentifier) 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 content (text representation) of textDocument,
if it is listed as source of a project or in the default manager.
public string[]? FileContentInMemory (Microsoft.VisualStudio.LanguageServer.Protocol.TextDocumentIdentifier textDocument);
member this.FileContentInMemory : Microsoft.VisualStudio.LanguageServer.Protocol.TextDocumentIdentifier -> string[]
Public Function FileContentInMemory (textDocument As TextDocumentIdentifier) As String()
Parameters
- textDocument
- TextDocumentIdentifier
Returns
- String[]
Remarks
Returns null if the given file is null.
This method waits for all currently running or queued tasks to finish before getting the file content.