From 5bc4e5a4a00823dcd40afd56e93a30591e948535 Mon Sep 17 00:00:00 2001 From: Sarah Fortune Date: Mon, 4 Aug 2025 21:15:45 +0100 Subject: [PATCH] Add comments for HostBridge RPC showSaveDialog (#5351) --- proto/host/window.proto | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proto/host/window.proto b/proto/host/window.proto index 368697f3..bb9f1248 100644 --- a/proto/host/window.proto +++ b/proto/host/window.proto @@ -84,6 +84,8 @@ message ShowSaveDialogRequest { message ShowSaveDialogOptions { optional string default_path = 1; + // A map of file types to extensions, e.g + // "Text Files": { "extensions": ["txt", "md"] } map filters = 2; } @@ -92,6 +94,7 @@ message FileExtensionList { } message ShowSaveDialogResponse { + // If the user cancelled the dialog, this will be empty. optional string selected_path = 1; } @@ -129,4 +132,4 @@ message GetVisibleTabsRequest { message GetVisibleTabsResponse { repeated string paths = 1; -} \ No newline at end of file +}