Skip to content

Commit

Permalink
chore: Add askUserForFileSelection() in KaotoEditorChannelApi
Browse files Browse the repository at this point in the history
  • Loading branch information
igarashitm committed Oct 3, 2024
1 parent cb1f68e commit 0b0556f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/ui/src/multiplying-architecture/KaotoEditorChannelApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,16 @@ export interface KaotoEditorChannelApi extends KogitoEditorChannelApi {
* @return If the deletion was done succesfully
*/
deleteResource(path: string): Promise<boolean>;

/**
* Show a file picker and ask the user to select one or more files available.
* @param include The filter expression for the files to include
* @param exclude The filter expression for the files to exclude
* @param options The options to pass over. In VS Code, it is directly delivered as QuickPickOptions
*/
askUserForFileSelection(
include: string,
exclude?: string,
options?: Record<string, unknown>,
): Promise<string[] | string | undefined>;
}

0 comments on commit 0b0556f

Please sign in to comment.