Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 4 additions & 51 deletions src/Vscode.hx
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,6 @@ extern class VscodeWindow {
*/
function createTextEditorDecorationType(options:DecorationRenderOptions):TextEditorDecorationType;


/**
* Show an information message to users. Optionally provide an array of items which will be presented as
* clickable buttons.
Expand Down Expand Up @@ -717,30 +716,7 @@ extern class VscodeWindow {
* @param items A set of items that will be rendered as actions in the message.
* @returns A thenable that resolves to the selected item or `undefined` when being dismissed.
*/
overload function showWarningMessage(message:String, items:Rest<String>):Thenable<Null<String>>;

/**
* Show a warning message.
*
* @see {@link window.showInformationMessage showInformationMessage}
*
* @param message The message to show.
* @param options Configures the behaviour of the message.
* @param items A set of items that will be rendered as actions in the message.
* @returns A thenable that resolves to the selected item or `undefined` when being dismissed.
*/
overload function showWarningMessage(message:String, options:MessageOptions, items:Rest<String>):Thenable<Null<String>>;

/**
* Show a warning message.
*
* @see {@link window.showInformationMessage showInformationMessage}
*
* @param message The message to show.
* @param items A set of items that will be rendered as actions in the message.
* @returns A thenable that resolves to the selected item or `undefined` when being dismissed.
*/
overload function showWarningMessage<T:MessageItem>(message:String, items:Rest<T>):Thenable<Null<T>>;
overload function showWarningMessage<T:EitherType<String, MessageItem>>(message:String, items:Rest<T>):Thenable<Null<T>>;

/**
* Show a warning message.
Expand All @@ -752,30 +728,7 @@ extern class VscodeWindow {
* @param items A set of items that will be rendered as actions in the message.
* @returns A thenable that resolves to the selected item or `undefined` when being dismissed.
*/
overload function showWarningMessage<T:MessageItem>(message:String, options:MessageOptions, items:Rest<T>):Thenable<Null<T>>;

/**
* Show an error message.
*
* @see {@link window.showInformationMessage showInformationMessage}
*
* @param message The message to show.
* @param items A set of items that will be rendered as actions in the message.
* @returns A thenable that resolves to the selected item or `undefined` when being dismissed.
*/
overload function showErrorMessage(message:String, items:Rest<String>):Thenable<Null<String>>;

/**
* Show an error message.
*
* @see {@link window.showInformationMessage showInformationMessage}
*
* @param message The message to show.
* @param options Configures the behaviour of the message.
* @param items A set of items that will be rendered as actions in the message.
* @returns A thenable that resolves to the selected item or `undefined` when being dismissed.
*/
overload function showErrorMessage(message:String, options:MessageOptions, items:Rest<String>):Thenable<Null<String>>;
overload function showWarningMessage<T:EitherType<String, MessageItem>>(message:String, options:MessageOptions, items:Rest<T>):Thenable<Null<T>>;

/**
* Show an error message.
Expand All @@ -786,7 +739,7 @@ extern class VscodeWindow {
* @param items A set of items that will be rendered as actions in the message.
* @returns A thenable that resolves to the selected item or `undefined` when being dismissed.
*/
overload function showErrorMessage<T:MessageItem>(message:String, items:Rest<T>):Thenable<Null<T>>;
overload function showErrorMessage<T:EitherType<String, MessageItem>>(message:String, items:Rest<T>):Thenable<Null<T>>;

/**
* Show an error message.
Expand All @@ -798,7 +751,7 @@ extern class VscodeWindow {
* @param items A set of items that will be rendered as actions in the message.
* @returns A thenable that resolves to the selected item or `undefined` when being dismissed.
*/
overload function showErrorMessage<T:MessageItem>(message:String, options:MessageOptions, items:Rest<T>):Thenable<Null<T>>;
overload function showErrorMessage<T:EitherType<String, MessageItem>>(message:String, options:MessageOptions, items:Rest<T>):Thenable<Null<T>>;

/**
* Shows a selection list allowing multiple selections.
Expand Down