generated from obsidianmd/obsidian-sample-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Description
When updating status on multiple files via batch operations (context menu), some file explorer icons update correctly while others remain with old status icons.
Current Behavior
- Select multiple files → right-click → change status
- Some icons update to new status ✅
- Some icons keep old status ❌
- Inconsistent across files in same batch
Expected Behavior
All selected files should update their explorer icons consistently after batch status change.
Root Cause
Race condition between:
- Individual
note-status:status-changedevents fired per file - Debounced update queue in
ExplorerIntegration - Direct icon updates in
handleStatusChanged()
Multiple update mechanisms conflict, causing partial updates.
Technical Solution
- Replace individual events with single
note-status:batch-status-changedevent - Add
updateBatchFileExplorerIcons()method to handle batch updates - Clear update queue before batch processing to avoid conflicts
Files Affected
services/status-service.tsmain.tsintegrations/explorer/explorer-integration.ts
Priority
Medium - Affects UX but workaround exists (manual refresh)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done