mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-24 06:34:09 +00:00
Refactor ServeSession to support oneshot sessions
- Updated the ServeSession struct to allow for optional ChangeProcessor and related fields, enabling lightweight oneshot sessions that do not require live filesystem monitoring. - Modified the new and new_oneshot methods to initialize sessions accordingly, improving flexibility for commands that only need a snapshot of the tree. - Adjusted related CLI commands to utilize the new oneshot session functionality, enhancing performance for operations like plugin installation and syncback. These changes streamline session management and improve the efficiency of operations that do not require continuous updates.
This commit is contained in:
parent
431b1fb5a5
commit
484b190464
4 changed files with 81 additions and 33 deletions
|
|
@ -55,7 +55,7 @@ impl UploadCommand {
|
|||
|
||||
let vfs = Vfs::new_default();
|
||||
|
||||
let session = ServeSession::new(vfs, project_path, None)?;
|
||||
let session = ServeSession::new_oneshot(vfs, project_path)?;
|
||||
|
||||
let tree = session.tree();
|
||||
let inner_tree = tree.inner();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue