-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change TextDocument's getText to take an optional range
TextDocument's getText() function has been changed to take an optional range in the form of getText(range?: Range). This allows clients to extract a substring within the document instead of the entire document. Ranges that start at a position smaller than the document will be adjusted to the beginning of the document. Likewise, ranges that end beyond the length of the document will be adjusted to end within the bounds of the document. Signed-off-by: Remy Suen <remy.suen@gmail.com>
- Loading branch information
Showing
2 changed files
with
24 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters