From 7bb48a8e451ad8da71e9212703fec2b8ddea5d14 Mon Sep 17 00:00:00 2001 From: terurou Date: Thu, 8 May 2025 12:14:02 +0900 Subject: [PATCH] fixed `showWarningMessage()` and `showErrorMessage()` --- src/Vscode.hx | 55 ++++----------------------------------------------- 1 file changed, 4 insertions(+), 51 deletions(-) diff --git a/src/Vscode.hx b/src/Vscode.hx index 9c2a84a4..aa10d6fd 100644 --- a/src/Vscode.hx +++ b/src/Vscode.hx @@ -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. @@ -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):Thenable>; - - /** - * 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):Thenable>; - - /** - * 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(message:String, items:Rest):Thenable>; + overload function showWarningMessage>(message:String, items:Rest):Thenable>; /** * Show a warning message. @@ -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(message:String, options:MessageOptions, items:Rest):Thenable>; - - /** - * 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):Thenable>; - - /** - * 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):Thenable>; + overload function showWarningMessage>(message:String, options:MessageOptions, items:Rest):Thenable>; /** * Show an error message. @@ -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(message:String, items:Rest):Thenable>; + overload function showErrorMessage>(message:String, items:Rest):Thenable>; /** * Show an error message. @@ -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(message:String, options:MessageOptions, items:Rest):Thenable>; + overload function showErrorMessage>(message:String, options:MessageOptions, items:Rest):Thenable>; /** * Shows a selection list allowing multiple selections.