CompilationUnitManager.FileContentInMemory(TextDocumentIdentifier) Method

Definition

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>).

Applies to