From fd9e160d7700c5e656b8d3f7b0ef808165705f75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Pupier?= Date: Thu, 3 Oct 2024 11:47:21 +0200 Subject: [PATCH] Define deleteContent API in ChannelEditor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit relates to kaotoio/vscode-kaoto#681 Signed-off-by: Aurélien Pupier --- .../multiplying-architecture/KaotoEditorChannelApi.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/ui/src/multiplying-architecture/KaotoEditorChannelApi.ts b/packages/ui/src/multiplying-architecture/KaotoEditorChannelApi.ts index 4705e3f40..ab9b277d6 100644 --- a/packages/ui/src/multiplying-architecture/KaotoEditorChannelApi.ts +++ b/packages/ui/src/multiplying-architecture/KaotoEditorChannelApi.ts @@ -28,14 +28,21 @@ export interface KaotoEditorChannelApi extends KogitoEditorChannelApi { /** * Retrieve resource content - * @param path The path of the resource + * @param path The path of the resource relatively to the currently edited Camel file */ getResourceContent(path: string): Promise; /** * Save resource content - * @param path The path of the resource + * @param path The path of the resource relatively to the currently edited Camel file * @param content The content to be saved */ saveResourceContent(path: string, content: string): Promise; + + /** + * Delete resource + * @param path The path of the resource relatively to the currently edited Camel file + * @return If the deletion was done succesfully + */ + deleteResource(path: string): Promise; }