Surface polish: batched Minor findings from the native-surfaces final review (#71) #75

Merged
benstull merged 8 commits from worktree-s71-surface-polish into main 2026-07-03 03:20:24 +00:00
Showing only changes of commit 057bb93362 - Show all commits
+6 -1
View File
@@ -119,7 +119,12 @@ export class GitBaselineAdapter implements vscode.Disposable {
if (pending) clearTimeout(pending);
pending = setTimeout(() => void repo.status().catch(() => {}), 150);
});
this.disposables.push({ dispose: () => watcher.close() });
this.disposables.push({
dispose: () => {
watcher.close();
if (pending) clearTimeout(pending);
},
});
} catch {
// best-effort only — the passive repo.state.onDidChange listener still applies.
}