Show folder names immediately and refresh stale index sizes without walking the whole drive.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-26 11:21:20 +02:00
parent 6fc7506eb7
commit e2916aef9c
88 changed files with 5373 additions and 544 deletions

View File

@@ -16,6 +16,8 @@ public interface IIndexingHost
void EnqueueFullScan(long sourceId);
void EnqueueFolderScan(long sourceId, string pathRel);
void EnqueueReconcile(long sourceId, string pathRel);
/// <summary>Shallow reconcile, then descend into child folders whose index no longer matches disk.</summary>
void EnqueueVerify(long sourceId, string pathRel) => EnqueueReconcile(sourceId, pathRel);
void Cancel(long sourceId);
}
@@ -63,6 +65,8 @@ public interface ISourceHost
Task<Source> AddUncAsync(string path, CancellationToken cancellationToken = default);
Task<Source?> EnsureForPathAsync(string path, CancellationToken cancellationToken = default);
Task<bool> ForgetAsync(string path, CancellationToken cancellationToken = default);
Task<Source?> MarkReachableAsync(string path, CancellationToken cancellationToken = default)
=> Task.FromResult<Source?>(null);
}
public interface IIndexMutations