mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Merge from vscode c58aaab8a1cc22a7139b761166a0d4f37d41e998 (#7880)
* Merge from vscode c58aaab8a1cc22a7139b761166a0d4f37d41e998 * fix pipelines * fix strict-null-checks * add missing files
This commit is contained in:
@@ -106,6 +106,21 @@ export enum EditorActivation {
|
||||
PRESERVE
|
||||
}
|
||||
|
||||
export enum EditorOpenContext {
|
||||
|
||||
/**
|
||||
* Default: the editor is opening via a programmatic call
|
||||
* to the editor service API.
|
||||
*/
|
||||
API,
|
||||
|
||||
/**
|
||||
* Indicates that a user action triggered the opening, e.g.
|
||||
* via mouse or keyboard use.
|
||||
*/
|
||||
USER
|
||||
}
|
||||
|
||||
export interface IEditorOptions {
|
||||
|
||||
/**
|
||||
@@ -179,6 +194,18 @@ export interface IEditorOptions {
|
||||
* Does not use editor overrides while opening the editor
|
||||
*/
|
||||
readonly ignoreOverrides?: boolean;
|
||||
|
||||
/**
|
||||
* A optional hint to signal in which context the editor opens.
|
||||
*
|
||||
* If configured to be `EditorOpenContext.USER`, this hint can be
|
||||
* used in various places to control the experience. For example,
|
||||
* if the editor to open fails with an error, a notification could
|
||||
* inform about this in a modal dialog. If the editor opened through
|
||||
* some background task, the notification would show in the background,
|
||||
* not as a modal dialog.
|
||||
*/
|
||||
readonly context?: EditorOpenContext;
|
||||
}
|
||||
|
||||
export interface ITextEditorSelection {
|
||||
|
||||
Reference in New Issue
Block a user