CompilationUnitManager.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.
Gets the current file content (text representation) in memory.
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[]
The current file content in memory, or null if textDocument is not listed as a source file.
Remarks
Waits for all currently running or queued tasks to finish before getting the file content by calling FlushAndExecute<T>(Func<T>).