fix(electrobun): native folder picker dialog replaces inline PathBrowser

- Uses Electrobun's Utils.openFileDialog (canChooseDirectory: true)
- files.pickDirectory + files.homeDir RPC handlers
- ProjectWizard: 📂 button opens native OS dialog
- Removed broken inline PathBrowser (process.env.HOME not in WebView)
This commit is contained in:
Hibryda 2026-03-22 11:38:19 +01:00
parent 45bca3b96f
commit bfc63bb595
3 changed files with 44 additions and 7 deletions

View file

@ -146,6 +146,16 @@ export type PtyRPCRequests = {
error?: string;
};
};
/** Native folder picker dialog */
"files.pickDirectory": {
params: { startingFolder?: string };
response: { path: string | null };
};
/** Get home directory path */
"files.homeDir": {
params: {};
response: { path: string };
};
/** Write text content to a file (atomic temp+rename). */
"files.write": {
params: { path: string; content: string };