дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-28 05:22:23 +02:00
- 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.
31 рядки
1.5 KiB
Diff
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"
|
|
}
|
|
} : {}
|