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
@@ -542,9 +542,8 @@ pub trait HostApi {
|
||||
}
|
||||
|
||||
/// Return the filesystem path of the document in tab `tab_id`, if any.
|
||||
/// Added after API v4; appended at the very end so older plugins compiled
|
||||
/// without it keep stable vtable indices. The default returns `None`;
|
||||
/// in-process hosts should override it to expose the real path.
|
||||
/// Added in API v5. The default returns `None`; in-process hosts should
|
||||
/// override it to expose the real path.
|
||||
fn document_path(&self, tab_id: u64) -> Option<PathBuf> {
|
||||
let _ = tab_id;
|
||||
None
|
||||
|
||||
Reference in new issue
Block a user