mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-17 11:03:14 -04:00
Merge from vscode c58aaab8a1cc22a7139b761166a0d4f37d41e998 (#7880)
* Merge from vscode c58aaab8a1cc22a7139b761166a0d4f37d41e998 * fix pipelines * fix strict-null-checks * add missing files
This commit is contained in:
@@ -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[];
|
||||
|
||||
Reference in New Issue
Block a user