Visual Studio Code, rebuilt in Rust
Rust
fix(minimap): paint the minimap over the sticky scroll widget
rokartur8dac76189b71
diff --git a/native/crates/app/src/workbench/editor_view.rs b/native/crates/app/src/workbench/editor_view.rsindex 6627a939bc1..eb899794d56 100644--- a/native/crates/app/src/workbench/editor_view.rs+++ b/native/crates/app/src/workbench/editor_view.rs@@ -1414,12 +1414,13 @@ impl Workbench {)),).when(editor.scroll.top > 0. && !in_multi_diff, |area| area.child(div().absolute().top_0().left_0().right(px(VERTICAL_SCROLLBAR_WIDTH)).h(px(SCROLL_SHADOW_HEIGHT)).cursor_default().child(self.scroll_shadow().size_full())))+ // minimap.css: the sticky scroll and the minimap share z-index 4, so the minimap, later in the DOM, paints over it.+ .child(shifted().children(self.sticky_scroll_widget(editor, metrics, window, cx))).children(self.minimap(editor, cx)).child(shifted().children(middle_scroll_dot).children(self.empty_editor_hint(editor, metrics.content_left(), self.editors.viewport.width + metrics.content_left() + minimap_width, window, cx))- .children(self.sticky_scroll_widget(editor, metrics, window, cx))// Messages and the overlay widgets are the focused editor's; the hover is any code editor's..children(self.content_hover_widget(editor, metrics.content_left(), metrics.char_width, window, cx)).children(self.debug_hover_widget(editor, metrics.content_left(), metrics.char_width, window, cx))diff --git a/port/results/windows.md b/port/results/windows.mdindex cb0b1f3ffb4..d1cc22daba3 100644--- a/port/results/windows.md+++ b/port/results/windows.md@@ -37,3 +37,7 @@ On top of 219f07f8e53, the Studio, release build:- ui-pair `port/fixtures/ui-pair/m8/modal-all.json` with `SETTINGS='{"workbench.editor.useModal":"all"}'`: Quick Open's notes.txt opens in the modal part in both, with the same header, actions and size.- ui-pair `port/fixtures/ui-pair/m11/activity-focus.json`: Focus Activity Bar, then Down: the unchecked Search item is drawn in `activityBar.foreground` (215 at its brightest pixel in both) and Source Control in `activityBar.inactiveForeground` (134 in both).- ui-pair `port/fixtures/ui-steps/hot-exit.json` did not finish: a macOS consent prompt (UserNotificationCenter) on the Studio refused cua-driver's drag. Hot exit rests on the milestone 11 verification above and `cargo test -p app backup_tracker lifecycle` (passing in this run).++## Folded dark back under 9729 (custom-editor-diffs)++`WINDOWS=folded THEMES=dark port/tools/pixel-check` on the Studio, release build: folded dark 8092 different pixels (fc23e8038d9 gave 9729, the parent of this fix 11985). Two causes, not the minimap's first line: the bracket pairs a minimap line is colored from stayed cached after the visible lines were tokenized, so lines tokenized later kept the default foreground (bracketPairsTree.ts `handleDidChangeTokens` pairs again; `syntax.rs` now drops its pairs on every token change), and the port drew the sticky scroll widget over the minimap, where minimap.css gives both z-index 4 and the minimap, later in the DOM, paints over it. The z-order alone gave 10273.