Skip to content

Commit

Permalink
Define deleteContent API in ChannelEditor
Browse files Browse the repository at this point in the history
relates to KaotoIO/vscode-kaoto#681

Signed-off-by: Aurélien Pupier <[email protected]>
  • Loading branch information
apupier committed Oct 3, 2024
1 parent bc1656a commit fd9e160
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<string | undefined>;

/**
* 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<void>;

/**
* 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<boolean>;
}

0 comments on commit fd9e160

Please sign in to comment.