Commit 02ffd1d
committed
feat(Handler/ui): Add native dialog handler for extension messages
- Introduce `ui` handler module in Mountain backend to process UI commands from Cocoon shim
- Implement `handle_show_message` using Tauri's native dialog API instead of web-based alerts
- Map VS Code extension message severity levels (Error/Warn/Info) to native dialog titles
- Add structured logging for extension message events through stdio
- Improve code formatting with rustfmt for better maintainability
This change replaces Electron's web-based dialogs with Tauri's native implementations, aligning with Land's performance goals by reducing webview interaction overhead. The handler enables VS Code extensions using `window.showErrorMessage`/`showWarningMessage` APIs to function through Cocoon shim layer while maintaining native UI consistency.1 parent 52e8fbe commit 02ffd1d
2 files changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
43 | 45 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
34 | | - | |
35 | | - | |
36 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
37 | 43 | | |
38 | 44 | | |
39 | 45 | | |
| |||
0 commit comments