mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-10 18:22:34 -05:00
Merge from vscode 718331d6f3ebd1b571530ab499edb266ddd493d5
This commit is contained in:
@@ -215,6 +215,21 @@ export interface ITextEditorSelection {
|
||||
readonly endColumn?: number;
|
||||
}
|
||||
|
||||
export const enum TextEditorSelectionRevealType {
|
||||
/**
|
||||
* Option to scroll vertically or horizontally as necessary and reveal a range centered vertically.
|
||||
*/
|
||||
Center = 0,
|
||||
/**
|
||||
* Option to scroll vertically or horizontally as necessary and reveal a range centered vertically only if it lies outside the viewport.
|
||||
*/
|
||||
CenterIfOutsideViewport = 1,
|
||||
/**
|
||||
* Option to scroll vertically or horizontally as necessary and reveal a range close to the top of the viewport, but not quite at the top.
|
||||
*/
|
||||
NearTop = 2,
|
||||
}
|
||||
|
||||
export interface ITextEditorOptions extends IEditorOptions {
|
||||
|
||||
/**
|
||||
@@ -228,7 +243,8 @@ export interface ITextEditorOptions extends IEditorOptions {
|
||||
readonly viewState?: object;
|
||||
|
||||
/**
|
||||
* Option to scroll vertically or horizontally as necessary and reveal a range centered vertically only if it lies outside the viewport.
|
||||
* Option to control the text editor selection reveal type.
|
||||
* Defaults to TextEditorSelectionRevealType.Center
|
||||
*/
|
||||
readonly revealInCenterIfOutsideViewport?: boolean;
|
||||
readonly selectionRevealType?: TextEditorSelectionRevealType;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user