M1.13: watch open buffers' folders, bufferFocused, truncated tree row
- The parent directory of every open buffer is pinned in the project
watcher (workspace::sync_buffer_dirs after every command): it counts
against the cap but is never evicted while a buffer in it is open, so
reloads and fileChangedOnDisk arrive for never-expanded folders.
- file.open on an already-open buffer emits the new bufferFocused {id};
the editor activates that tab and it outranks pending adoptions.
- The project tree shows a "Listing truncated" note row
(project.tree.truncated) after a partly listed directory.
- Tests: engine (pinning, eviction, focus), control channel
(bufferFocused), Vitest (tab switch, race, truncated row).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
7b7273a947
commit
8a71f7bd08
19 changed files with 312 additions and 30 deletions
|
|
@ -47,6 +47,13 @@ pub enum Event {
|
|||
/// File path.
|
||||
path: String,
|
||||
},
|
||||
/// `file.open` asked for a file whose buffer was already open; clients
|
||||
/// show (activate) that buffer. A new buffer gets
|
||||
/// [`Event::BufferOpened`] instead.
|
||||
BufferFocused {
|
||||
/// Buffer id.
|
||||
id: u64,
|
||||
},
|
||||
/// A buffer's text changed; `version` is the new version.
|
||||
BufferChanged {
|
||||
/// Buffer id.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue