Merge from vscode c58aaab8a1cc22a7139b761166a0d4f37d41e998 (#7880)

* Merge from vscode c58aaab8a1cc22a7139b761166a0d4f37d41e998

* fix pipelines

* fix strict-null-checks

* add missing files
This commit is contained in:
Anthony Dresser
2019-10-21 22:12:22 -07:00
committed by GitHub
parent 7c9be74970
commit 1e22f47304
913 changed files with 18898 additions and 16536 deletions

View File

@@ -459,8 +459,8 @@ export class FindMatch {
*/
export interface IFoundBracket {
range: Range;
open: string;
close: string;
open: string[];
close: string[];
isOpen: boolean;
}
@@ -608,6 +608,12 @@ export interface ITextModel {
*/
getValueLengthInRange(range: IRange): number;
/**
* Get the character count of text in a certain range.
* @param range The range describing what text length to get.
*/
getCharacterCountInRange(range: IRange): number;
/**
* Splits characters in two buckets. First bucket (A) is of characters that
* sit in lines with length < `LONG_LINE_BOUNDARY`. Second bucket (B) is of
@@ -881,6 +887,13 @@ export interface ITextModel {
*/
findNextBracket(position: IPosition): IFoundBracket | null;
/**
* Find the enclosing brackets that contain `position`.
* @param position The position at which to start the search.
* @internal
*/
findEnclosingBrackets(position: IPosition): [Range, Range] | null;
/**
* Given a `position`, if the position is on top or near a bracket,
* find the matching bracket of that bracket and return the ranges of both brackets.
@@ -1196,6 +1209,7 @@ export interface ITextBuffer {
getValueInRange(range: Range, eol: EndOfLinePreference): string;
createSnapshot(preserveBOM: boolean): ITextSnapshot;
getValueLengthInRange(range: Range, eol: EndOfLinePreference): number;
getCharacterCountInRange(range: Range, eol: EndOfLinePreference): number;
getLength(): number;
getLineCount(): number;
getLinesContent(): string[];