mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-31 09:35:39 -05:00
Merge from vscode e3c4990c67c40213af168300d1cfeb71d680f877 (#16569)
This commit is contained in:
@@ -207,7 +207,17 @@ export interface IQuickInput extends IDisposable {
|
||||
hide(): void;
|
||||
}
|
||||
|
||||
export interface IQuickPickAcceptEvent {
|
||||
export interface IQuickPickWillAcceptEvent {
|
||||
|
||||
/**
|
||||
* Allows to disable the default accept handling
|
||||
* of the picker. If `veto` is called, the picker
|
||||
* will not trigger the `onDidAccept` event.
|
||||
*/
|
||||
veto(): void;
|
||||
}
|
||||
|
||||
export interface IQuickPickDidAcceptEvent {
|
||||
|
||||
/**
|
||||
* Signals if the picker item is to be accepted
|
||||
@@ -239,7 +249,8 @@ export interface IQuickPick<T extends IQuickPickItem> extends IQuickInput {
|
||||
|
||||
readonly onDidChangeValue: Event<string>;
|
||||
|
||||
readonly onDidAccept: Event<IQuickPickAcceptEvent>;
|
||||
readonly onWillAccept: Event<IQuickPickWillAcceptEvent>;
|
||||
readonly onDidAccept: Event<IQuickPickDidAcceptEvent>;
|
||||
|
||||
/**
|
||||
* If enabled, will fire the `onDidAccept` event when
|
||||
|
||||
Reference in New Issue
Block a user