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

@@ -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 {