ILanguageClientDocumentManager.EnsureFileExistsAsync(Uri) 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.
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.