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.
Get the substring of text content from the provided range.
A range
The text inside the provided range, or the whole text if no range is provided
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.