perf(ui): smoother editor scrolling, tab switching and first file open (#4633)

Removes selectors that restyled whole subtrees on every inserted editor line or focus change (CodeMirror via a pnpm patch; selectorCost.test.ts guards them), measures space width once per font, shares one tooltip host, builds tab menus lazily, caches parsed SVG icons, prewarms an off-screen editor at idle, stats project-tree entries in parallel, and keeps the Git tool window at its size during a live window resize. Verified with full vitest, typecheck, ide-vfs cargo test and clippy, gitLog e2e, and a window resize in the app.
This commit is contained in:
l0ng-ai
2026-11-20 09:13:29 +08:00
committed by GitHub
parent 737afc6a8d
commit f4a7a7bafb
33 changed files with 614 additions and 167 deletions
+1 -1
View File
@@ -37,7 +37,7 @@
flex: none;
align-items: center;
}
.stack > * + * {
.stack > :where(:not(:first-child)) {
margin-left: calc(var(--overlap) * -1);
}
.stack > .ringed + .ringed {