Accept dropped files in the terminal (#1173)

This commit is contained in:
Mohamed Boudra
2026-05-25 19:16:39 +08:00
committed by GitHub
parent e40ad0c00e
commit 19289286a6
5 changed files with 353 additions and 1 deletions
+5
View File
@@ -51,6 +51,10 @@ export interface DesktopOpenerBridge {
openUrl?: (url: string) => Promise<void>;
}
export interface DesktopWebUtilsBridge {
getPathForFile?: (file: File) => string;
}
export interface DesktopMenuBridge {
showContextMenu?: (input?: { kind?: "terminal"; hasSelection?: boolean }) => Promise<void>;
}
@@ -107,6 +111,7 @@ export interface DesktopHostBridge {
dialog?: DesktopDialogBridge;
notification?: DesktopNotificationBridge;
opener?: DesktopOpenerBridge;
webUtils?: DesktopWebUtilsBridge;
menu?: DesktopMenuBridge;
browser?: DesktopBrowserBridge;
}