The language of the text document.
The text contents of the text document.
When using the Sourcegraph browser
extension, the value is
undefined
because determining the text contents (in general) is not possible without
additional access to the code host API. In the future, this limitation may be removed.
The URI of the text document.
Convert the position to a zero-based offset.
The position will be adjusted using {@link TextDocument#validatePosition}.
A position.
A valid zero-based offset.
Generated using TypeDoc
A text document, such as a file in a repository.