ProjectManager.FileContentInMemory(TextDocumentIdentifier) Method

Definition

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.

Applies to