forked from 1b-agent/opencadstudio-upstream
fix(plugins): preserve document path encoding
Keep OS-native path data intact across IPC instead of replacing non-UTF-8 bytes. Refs #901
This commit is contained in:
1 parent
1c52a2afcf
commit
0d766be3df
6 files changed
+13
-11
No files matched your search
@@ -130,6 +130,7 @@ pub trait BuiltinPlugin: Send + Sync {
|
||||
fn manifest(&self) -> &'static PluginManifest;
|
||||
fn ribbon(&self) -> Box<dyn CadModule>; // the ribbon tab
|
||||
fn dispatch(&self, host: &mut dyn HostApi, cmd: &str) -> bool;
|
||||
fn on_load(&mut self, host: &mut dyn HostApi) {}
|
||||
}
|
||||
```
|
||||
|
||||
@@ -146,6 +147,7 @@ concrete types:
|
||||
| Command line | `push_info`, `push_output`, `push_error` |
|
||||
| Undo / dirty | `push_undo`, `set_dirty` |
|
||||
| Tab | `tab_index()` |
|
||||
| Document identity (V5) | `document_path(tab_id)` returns the saved path for a document tab. |
|
||||
| Notifications (V4) | `on_notification` receives `HostNotification::SelectionChangedV4 { tab_id, handles }` when the active tab's selection changes, plus `DocumentChangedV4` / `DocumentTabClosed`. |
|
||||
|
||||
### `export_plugin!` — the C-ABI export
|
||||
|
||||
Reference in new issue
Block a user