ILanguageClientDocumentManager.EnsureFileExistsAsync(Uri) Method

Definition

Asks the language client to create a local copy of a document and return the local file path.

public:
 System::Threading::Tasks::Task<System::String ^> ^ EnsureFileExistsAsync(Uri ^ documentUri);
public System.Threading.Tasks.Task<string> EnsureFileExistsAsync (Uri documentUri);
abstract member EnsureFileExistsAsync : Uri -> System.Threading.Tasks.Task<string>
Public Function EnsureFileExistsAsync (documentUri As Uri) As Task(Of String)

Parameters

documentUri
Uri

Document URI that was returned by language client in response to an LSP query.

Returns

Local path to the file on disk or null if URI couldn't be recognized or converted to a local path.

Applies to