provideTextDocumentContent

abstract fun provideTextDocumentContent(uri: Uri, token: CancellationToken): ProviderResult<ERROR CLASS: Symbol not found for JsString>(source)

Provide textual content for a given uri.

The editor will use the returned string-content to create a readonly document. Resources allocated should be released when the corresponding document has been closed.

Note: The contents of the created document might not be identical to the provided text due to end-of-line-sequence normalization.

Parameters

uri

An uri which scheme matches the scheme this provider was registered for.

token

A cancellation token.