Файли
openidea/patches/@codemirror__view.patch
T
l0ng-ai b1cf69bd05 perf(ui): smoother editor scrolling, tab switching and first file open
- Drop selectors that restyle whole subtrees on sibling insertions or focus
  changes (universal sibling selectors, `:focus ::selection`,
  `:not(:focus-within)`), patch @codemirror/view's base theme the same way,
  and add a test that keeps them out of src/.
- Measure the editor's space width once per font instead of per indent guide /
  rendered doc line; share one tooltip host under document.body.
- Build tab context menus only while open.
- Cache parsed SVG icons and clone them instead of re-parsing markup.
- Prewarm an off-screen editor at idle so the first file open doesn't compile
  and mount the editor setup.
- Project tree: compile ignored-name patterns into exact / suffix / regex
  checks, reuse one collator, and stat directory entries in parallel in
  ide-vfs.
- perf harness: wait for a settled selection before the tree key press.
2026-11-20 08:18:10 +08:00

31 рядки
1.5 KiB
Diff

diff --git a/dist/index.cjs b/dist/index.cjs
index b20aa9d84be6ff4b85b126bdd930065277668a26..e677ab06ca9668407e202979e14b75ab7641d6b1 100644
--- a/dist/index.cjs
+++ b/dist/index.cjs
@@ -9675,7 +9675,9 @@ const hideNativeSelection = state.Prec.highest(EditorView.theme({
"& :focus": {
caretColor: "initial !important",
...drawMainRange ? {
- "&::selection, & ::selection": {
+ // Not `& ::selection` too: a pseudo-class with a universal descendant restyles the
+ // whole subtree of every element that gains or loses focus.
+ "&::selection": {
backgroundColor: "Highlight !important"
}
} : {}
diff --git a/dist/index.js b/dist/index.js
index 216f754db06f65f7f17f056b47d8f6fab45067bf..22282993239d836ea1da19af10ccfc61b6480cc5 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -9670,7 +9670,9 @@ const hideNativeSelection = /*@__PURE__*/Prec.highest(/*@__PURE__*/EditorView.th
"& :focus": {
caretColor: "initial !important",
...drawMainRange ? {
- "&::selection, & ::selection": {
+ // Not `& ::selection` too: a pseudo-class with a universal descendant restyles the
+ // whole subtree of every element that gains or loses focus.
+ "&::selection": {
backgroundColor: "Highlight !important"
}
} : {}