mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 14:01:37 +00:00
Update logging levels in Rojo plugin and enhance test plans
- Promoted sync-related logging from Debug/Trace to Info level across multiple files, ensuring visibility of changes in the Studio output console. - Added a new plan for expanding the connected mode test suite to cover multi-step scenarios and round-trip identity verification. - Introduced a plan to fix stale tree desynchronization by implementing a validation mechanism on plugin connection. - Created a plan to bump sync logging to Info level, detailing todos for various components in the plugin. This update improves the clarity of logs and enhances testing coverage for connected mode scenarios.
This commit is contained in:
parent
2cc1726975
commit
316d7ea70e
17 changed files with 2443 additions and 1553 deletions
|
|
@ -3063,6 +3063,14 @@ async fn handle_websocket_subscription(
|
|||
session_id
|
||||
);
|
||||
|
||||
// Validate the in-memory tree against the real filesystem on every
|
||||
// plugin connect. This corrects any drift caused by missed VFS watcher
|
||||
// events so the plugin always sees the true state.
|
||||
let corrections = serve_session.validate_tree();
|
||||
if !corrections.is_empty() {
|
||||
message_queue.push_messages(&corrections);
|
||||
}
|
||||
|
||||
// Now continuously listen for new messages using select to handle both incoming messages
|
||||
// and WebSocket control messages concurrently
|
||||
let mut cursor = input_cursor;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue