forked from 1b-agent/opencadstudio-upstream
feat(plugin): harden V4 host integration
Preserve legacy wire indices and route concurrent V4 responses and background requests by correlation and stable tab ID.
This commit is contained in:
commit
f247d15f6e
110 files changed
+32159
-1254
No files matched your search
@@ -348,9 +348,13 @@ mod loader {
|
||||
pub fn remove_plugin(id: &str) -> bool {
|
||||
MANAGER.with(|m| {
|
||||
if let Some(manager) = m.borrow_mut().as_mut() {
|
||||
manager.remove(id)
|
||||
if manager.ids().iter().any(|loaded| loaded == id) {
|
||||
manager.remove(id)
|
||||
} else {
|
||||
true
|
||||
}
|
||||
} else {
|
||||
false
|
||||
true
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user