mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Merge from vscode 718331d6f3ebd1b571530ab499edb266ddd493d5
This commit is contained in:
@@ -355,6 +355,12 @@ export interface IEditor {
|
||||
*/
|
||||
revealLineInCenterIfOutsideViewport(lineNumber: number, scrollType?: ScrollType): void;
|
||||
|
||||
/**
|
||||
* Scroll vertically as necessary and reveal a line close to the top of the viewport,
|
||||
* optimized for viewing a code definition.
|
||||
*/
|
||||
revealLineNearTop(lineNumber: number, scrollType?: ScrollType): void;
|
||||
|
||||
/**
|
||||
* Scroll vertically or horizontally as necessary and reveal a position.
|
||||
*/
|
||||
@@ -370,6 +376,12 @@ export interface IEditor {
|
||||
*/
|
||||
revealPositionInCenterIfOutsideViewport(position: IPosition, scrollType?: ScrollType): void;
|
||||
|
||||
/**
|
||||
* Scroll vertically or horizontally as necessary and reveal a position close to the top of the viewport,
|
||||
* optimized for viewing a code definition.
|
||||
*/
|
||||
revealPositionNearTop(position: IPosition, scrollType?: ScrollType): void;
|
||||
|
||||
/**
|
||||
* Returns the primary selection of the editor.
|
||||
*/
|
||||
@@ -422,6 +434,12 @@ export interface IEditor {
|
||||
*/
|
||||
revealLinesInCenterIfOutsideViewport(lineNumber: number, endLineNumber: number, scrollType?: ScrollType): void;
|
||||
|
||||
/**
|
||||
* Scroll vertically as necessary and reveal lines close to the top of the viewport,
|
||||
* optimized for viewing a code definition.
|
||||
*/
|
||||
revealLinesNearTop(lineNumber: number, endLineNumber: number, scrollType?: ScrollType): void;
|
||||
|
||||
/**
|
||||
* Scroll vertically or horizontally as necessary and reveal a range.
|
||||
*/
|
||||
@@ -442,6 +460,12 @@ export interface IEditor {
|
||||
*/
|
||||
revealRangeInCenterIfOutsideViewport(range: IRange, scrollType?: ScrollType): void;
|
||||
|
||||
/**
|
||||
* Scroll vertically or horizontally as necessary and reveal a range close to the top of the viewport,
|
||||
* optimized for viewing a code definition.
|
||||
*/
|
||||
revealRangeNearTop(range: IRange, scrollType?: ScrollType): void;
|
||||
|
||||
/**
|
||||
* Directly trigger a handler or an editor action.
|
||||
* @param source The source of the call.
|
||||
|
||||
Reference in New Issue
Block a user