mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-25 20:01:07 +01:00
- crates/engine/src/store.rs: each stored plug-in's load reports how much of its file it read. What a failed read did not read goes back to the 512 MiB the stored plug-ins may read together, on every platform; the permission check before the loads is removed. A file that what is left does not cover, but would if earlier reads failed, waits until those reads are done, so the files still install in file-name order. Disabled files and file stamps are taken once, when the store is listed. A file's content is compared with its loaded module at install only when the file was modified less than 2 s before the store was listed; the clock is read only when a file was listed. A grant the load removed goes back for a later file with the same id only when the grants file has no entry for the id, and each install turn reads the grants file once. At quit, a stored load takes no locks and a folder load does not wait for the store's turn or for another window that is changing the plug-ins. - crates/engine/src/cmd/plugin.rs and crates/plugins/src/registry.rs: when a folder load turns off the file of a plug-in disabled by its id, the disabled list is saved in the same install turn, not only when the load ends. A change made in another window while the folder is being listed is one the load does not undo. - crates/ui-egui: an export and File > Open install the plug-ins still loading before they look up the formats, and a control request waiting for the loads no longer asks for a frame of its own. - crates/engine/src/file_access.rs: `ScopeHandle::capture` is as on `main` again. The new `ScopeHandle::capture_now` keeps the process's automation roots in force at capture time, and only the Additional Plug-ins Folder's per-file check uses it. - New tests: a stored file replaced with one of the same length and modified time while it loaded is skipped; another window's `plugin.list` reports a folder still loading as loading; a grant given elsewhere after the load removed one is kept. - docs/plugins.md: a module whose read and load take 10 s or longer is skipped also when it would have finished later, and at quit the app waits for the modules already loading, for at most 10 s. File > Open waits for the loads. The Loading paragraph and the docs/mcp.md lines are rewrapped.