Skip to content

Visual Studio Code, rebuilt in Rust

Rust

perf(workbench): draw the editor area as a cached part view

rokartur5ba54fed99b2
diff --git a/native/crates/app/src/workbench.rs b/native/crates/app/src/workbench.rs
index d1bdaba9c00..7bb50fea731 100644
--- a/native/crates/app/src/workbench.rs
+++ b/native/crates/app/src/workbench.rs
@@ -652,7 +652,6 @@ impl Render for Workbench {
self.sync_editors(cx);
self.auxiliary_windows.main_window = Some(window.window_handle());
self.close_auxiliary_windows_of_closed_parts(cx);
- let editor = self.in_part(editor_groups::MAIN_PART, |workbench| workbench.editor_groups_part(window, cx));
// The title and the status bar's editor items follow the main part's active editor (windowTitle.ts and
// editorStatus.ts are scoped to the window's part).
let main_group = self.part_active_group(editor_groups::MAIN_PART).expect("the main part has a group");
@@ -667,7 +666,7 @@ impl Render for Workbench {
.flex_col()
.child(self.with_group(main_group, |workbench| workbench.title_bar(f32::from(viewport.width), window, None, cx)))
.children(self.banner_part(window, cx))
- .child(self.middle_section(viewport, editor, window, cx))
+ .child(self.middle_section(viewport, window, cx))
.children(status_bar);
let modal_editor = self.modal_group_widget(window, cx);
let profile_icon_picker = self.profile_icon_picker(window, cx);
diff --git a/native/crates/app/src/workbench/content_hover_view.rs b/native/crates/app/src/workbench/content_hover_view.rs
index e9e942f7bfd..c8f90847261 100644
--- a/native/crates/app/src/workbench/content_hover_view.rs
+++ b/native/crates/app/src/workbench/content_hover_view.rs
@@ -109,14 +109,14 @@ impl Workbench {
let natural_width = self.content_hover.natural_width.clone();
let set_width = natural_width.get();
let measure = canvas(
- move |bounds, window, _| {
+ move |bounds, window, cx| {
let bounds: Bounds<f32> = bounds.map(f32::from);
if natural_width.get().is_none() {
natural_width.set(Some(bounds.size.width));
- window.refresh();
+ super::part_view::redraw_after_frame(window, cx);
}
if widget_bounds.get().map(|old| old.size) != Some(bounds.size) {
- window.refresh();
+ super::part_view::redraw_after_frame(window, cx);
}
widget_bounds.set(Some(bounds));
},
@@ -222,11 +222,11 @@ impl Workbench {
separator.a *= 0.5;
let content_height = self.content_hover.content_height.clone();
let measure = canvas(
- move |bounds, window, _| {
+ move |bounds, window, cx| {
let height = f32::from(bounds.size.height);
if content_height.get() != height {
content_height.set(height);
- window.refresh();
+ super::part_view::redraw_after_frame(window, cx);
}
},
|_, _, _, _| (),
@@ -488,12 +488,12 @@ impl Workbench {
let widget_bounds = self.content_hover.widget_bounds.clone();
let bottom = overflow.borrow().get(&index).copied().unwrap_or(0.);
let measure = canvas(
- move |bounds, window, _| {
+ move |bounds, window, cx| {
let Some(visible) = widget_bounds.get() else { return };
let (top, bottom, visible_bottom) = (f32::from(bounds.top()), f32::from(bounds.bottom()), visible.bottom());
let below_view = if top >= visible_bottom { 0. } else { (bottom - visible_bottom).max(0.) };
if overflow.borrow_mut().insert(index, below_view) != Some(below_view) {
- window.refresh();
+ super::part_view::redraw_after_frame(window, cx);
}
},
|_, _, _, _| (),
diff --git a/native/crates/app/src/workbench/debug_hover.rs b/native/crates/app/src/workbench/debug_hover.rs
index 3f5f7b211f5..6d4d5d7f72f 100644
--- a/native/crates/app/src/workbench/debug_hover.rs
+++ b/native/crates/app/src/workbench/debug_hover.rs
@@ -350,10 +350,10 @@ impl Workbench {
};
let widget_bounds = self.debug_hover.widget_bounds.clone();
let measure = canvas(
- move |bounds, window, _| {
+ move |bounds, window, cx| {
let bounds: Bounds<f32> = bounds.map(f32::from);
if widget_bounds.get().map(|old| old.size) != Some(bounds.size) {
- window.refresh();
+ super::part_view::redraw_after_frame(window, cx);
}
widget_bounds.set(Some(bounds));
},
diff --git a/native/crates/app/src/workbench/editor_view.rs b/native/crates/app/src/workbench/editor_view.rs
index 385cfff7324..0a244dca084 100644
--- a/native/crates/app/src/workbench/editor_view.rs
+++ b/native/crates/app/src/workbench/editor_view.rs
@@ -1573,7 +1573,7 @@ impl Workbench {
self.code_lens_scrolled(cx);
self.inlay_hints_scrolled(cx);
self.debug_inline_values_scrolled(cx);
- cx.notify();
+ self.notify_editor_view(cx);
}
/// `_reveal`: the scrollbars fade in, and fade out 500ms later unless the pointer is over the editor.
@@ -1586,14 +1586,14 @@ impl Workbench {
workbench.update(cx, |workbench, cx| workbench.hide_scrollbars(cx)).ok();
}));
}
- cx.notify();
+ self.notify_editor_view(cx);
}
/// `_hide`: kept while the pointer is over the editor or drags a slider.
fn hide_scrollbars(&mut self, cx: &mut Context<Self>) {
if !self.scrollbars.mouse_over && self.scrollbars.drag.is_none() {
self.scrollbars.set_shown(false, Instant::now());
- cx.notify();
+ self.notify_editor_view(cx);
}
}
diff --git a/native/crates/app/src/workbench/editor_view/multi_diff_editor_view.rs b/native/crates/app/src/workbench/editor_view/multi_diff_editor_view.rs
index 6fc36185d98..e4429e68a3b 100644
--- a/native/crates/app/src/workbench/editor_view/multi_diff_editor_view.rs
+++ b/native/crates/app/src/workbench/editor_view/multi_diff_editor_view.rs
@@ -887,10 +887,10 @@ impl Workbench {
let input = self.editors.active_multi_diff().expect("drawn for the active multi diff editor");
let body_width = input.body_width.clone();
let measure = canvas(
- move |bounds, window, _| {
+ move |bounds, window, cx| {
// The list shows or hides with the width, as the widget's `_width` autorun does.
if body_width.replace(f32::from(bounds.size.width)) != f32::from(bounds.size.width) {
- window.refresh();
+ crate::workbench::part_view::redraw_after_frame(window, cx);
}
},
|_, _, _, _| {},
diff --git a/native/crates/app/src/workbench/editor_view/tab_scroll.rs b/native/crates/app/src/workbench/editor_view/tab_scroll.rs
index b4b376ade89..26f9ef2c165 100644
--- a/native/crates/app/src/workbench/editor_view/tab_scroll.rs
+++ b/native/crates/app/src/workbench/editor_view/tab_scroll.rs
@@ -139,7 +139,7 @@ impl Workbench {
// After the tabs' prepaint: their bounds are this frame's.
.child(
canvas(
- move |_, window, _| {
+ move |_, window, cx| {
*laid_out.laid_out.borrow_mut() = ids;
let Some(child) = reveal else { return };
let handle = &laid_out.handle;
@@ -160,7 +160,7 @@ impl Workbench {
let target = revealed_scroll_left(scroll_left, width, left, right).clamp(0., f32::from(handle.max_offset().x).max(0.));
if target != scroll_left {
handle.set_offset(point(px(-target), px(0.)));
- window.refresh();
+ crate::workbench::part_view::redraw_after_frame(window, cx);
}
},
|_, _, _, _| {},
diff --git a/native/crates/app/src/workbench/inspect_tokens.rs b/native/crates/app/src/workbench/inspect_tokens.rs
index 35facb02d05..95e3e424281 100644
--- a/native/crates/app/src/workbench/inspect_tokens.rs
+++ b/native/crates/app/src/workbench/inspect_tokens.rs
@@ -195,10 +195,10 @@ impl Workbench {
let top = if fits_below || !fits_above { below_top } else { above_top };
let widget_bounds = self.inspect_tokens.widget_bounds.clone();
let measure = canvas(
- move |bounds, window, _| {
+ move |bounds, window, cx| {
let bounds: Bounds<f32> = bounds.map(f32::from);
if widget_bounds.get().map(|old| old.size) != Some(bounds.size) {
- window.refresh();
+ super::part_view::redraw_after_frame(window, cx);
}
widget_bounds.set(Some(bounds));
},
diff --git a/native/crates/app/src/workbench/keybindings_editor_view.rs b/native/crates/app/src/workbench/keybindings_editor_view.rs
index 1f12855bc8a..973ff440649 100644
--- a/native/crates/app/src/workbench/keybindings_editor_view.rs
+++ b/native/crates/app/src/workbench/keybindings_editor_view.rs
@@ -900,10 +900,10 @@ impl Workbench {
_ => (self.keybindings_editor.modal_focus.clone(), self.keybindings_editor_pane(width, height, window, cx).into_any_element()),
};
let measure = canvas(
- move |bounds, window, _| {
+ move |bounds, window, cx| {
let measured = (f32::from(bounds.size.width), f32::from(bounds.size.height));
if size.replace(measured) != measured {
- window.refresh();
+ super::part_view::redraw_after_frame(window, cx);
}
},
|_, _, _, _| (),
diff --git a/native/crates/app/src/workbench/notebook_editor.rs b/native/crates/app/src/workbench/notebook_editor.rs
index 9827d458af8..57640894b15 100644
--- a/native/crates/app/src/workbench/notebook_editor.rs
+++ b/native/crates/app/src/workbench/notebook_editor.rs
@@ -1213,10 +1213,10 @@ impl Workbench {
.overflow_hidden()
.child(
canvas(
- move |bounds, window, _| {
+ move |bounds, window, cx| {
// The rows in view follow the list's height (render_notebook_cell_lists): a new one draws again.
if bounds_cell.replace(bounds).size.height != bounds.size.height {
- window.refresh();
+ super::part_view::redraw_after_frame(window, cx);
}
let Some((view, clip)) = &webview else { return };
if covered {
diff --git a/native/crates/app/src/workbench/parameter_hints.rs b/native/crates/app/src/workbench/parameter_hints.rs
index a1c25b5bbb6..721f9e18b16 100644
--- a/native/crates/app/src/workbench/parameter_hints.rs
+++ b/native/crates/app/src/workbench/parameter_hints.rs
@@ -377,10 +377,10 @@ impl Workbench {
.when(has_docs, |body| body.child(div().pl(px(5.)).pr(px(10.)).children(docs)));
let widget_bounds = self.parameter_hints.widget_bounds.clone();
let measure = canvas(
- move |bounds, window, _| {
+ move |bounds, window, cx| {
let bounds: Bounds<f32> = bounds.map(f32::from);
if widget_bounds.get().map(|old| old.size) != Some(bounds.size) {
- window.refresh();
+ super::part_view::redraw_after_frame(window, cx);
}
widget_bounds.set(Some(bounds));
},
diff --git a/native/crates/app/src/workbench/part_grid.rs b/native/crates/app/src/workbench/part_grid.rs
index a862b40021c..9bdad04f708 100644
--- a/native/crates/app/src/workbench/part_grid.rs
+++ b/native/crates/app/src/workbench/part_grid.rs
@@ -478,7 +478,7 @@ impl Workbench {
/// The grid's middle row for a window of `viewport`: every part where the grid puts it, inside its card margins,
/// and the sashes. A changed `workbench.sideBar.location` moves the parts (`onDidChangeConfiguration`).
- pub(super) fn middle_section(&mut self, viewport: Size<Pixels>, editor: Div, window: &mut Window, cx: &mut Context<Self>) -> Div {
+ pub(super) fn middle_section(&mut self, viewport: Size<Pixels>, window: &mut Window, cx: &mut Context<Self>) -> Div {
let status_bar_height = if self.is_status_bar_visible() { self.status_bar_height() } else { 0. };
let (width, height) = (f32::from(viewport.width), f32::from(viewport.height) - TITLE_BAR_HEIGHT - self.banner_height() - status_bar_height);
let activity_bar_visible = self.is_part_visible(Part::ActivityBar);
@@ -510,14 +510,13 @@ impl Workbench {
self.layout_view_panes(parts.iter().find(|(part, _)| *part == Part::SideBar).map_or(height, |(_, [_, _, _, h])| *h) - bottom_gap, cx);
}
self.sync_tree_views(cx);
- let mut editor = Some(editor);
let mut section = div().relative().h(px(height)).flex_none();
for &(part, rect) in &parts {
let [left, top, right, bottom] = if compact { [0.; 4] } else { card_margins(part, rect, &parts, arrangement, width, height, false) };
let content = match part {
Part::ActivityBar => self.activity_bar(window, cx).into_any_element(),
Part::SideBar => self.part_view(Part::SideBar, cx),
- Part::Editor => editor.take().expect("one editor part").into_any_element(),
+ Part::Editor => self.part_view(Part::Editor, cx),
Part::Panel => self.panel_part(window, cx).into_any_element(),
Part::AuxiliaryBar => self.auxiliary_bar_part(window, cx).into_any_element(),
};
diff --git a/native/crates/app/src/workbench/part_view.rs b/native/crates/app/src/workbench/part_view.rs
index 9f347979269..93d0dda9de8 100644
--- a/native/crates/app/src/workbench/part_view.rs
+++ b/native/crates/app/src/workbench/part_view.rs
@@ -2,7 +2,7 @@
//! the part's state stays in the Workbench, which the view draws; a notify of the Workbench redraws every part, a
//! notify of the part view (a scroll in it) redraws that part and reuses the other cached parts.
-use gpui::{AnyElement, AnyView, AppContext, Context, EntityId, IntoElement, ParentElement, Render, StyleRefinement, Styled, Subscription, WeakEntity, Window, div};
+use gpui::{AnyElement, AnyView, App, AppContext, Context, EntityId, IntoElement, ParentElement, Render, StyleRefinement, Styled, Subscription, WeakEntity, Window, div};
use super::Workbench;
use super::layout::Part;
@@ -26,6 +26,13 @@ impl Render for PartView {
}
}
+/// For a size measured while drawing: `Window::refresh` is dropped during a draw, and a cached part would keep the
+/// old layout, so the view drawing it draws again after this frame.
+pub(super) fn redraw_after_frame(window: &Window, cx: &mut App) {
+ let view = window.current_view();
+ cx.defer(move |cx| cx.notify(view));
+}
+
impl Workbench {
/// The cached view of `part`, made on its first draw.
pub(super) fn part_view(&mut self, part: Part, cx: &mut Context<Self>) -> AnyElement {
@@ -42,6 +49,14 @@ impl Workbench {
self.hovers.forget_painted_targets(|view| !cached.contains(&view));
}
+ /// A change inside the active editor (a scroll): its part view alone draws again when the main part shows it.
+ pub(super) fn notify_editor_view(&self, cx: &mut Context<Self>) {
+ match self.part_views.get(&Part::Editor).filter(|_| self.part_of_group(self.editors.id) == Some(super::editor_groups::MAIN_PART)) {
+ Some(view) => App::notify(cx, view.entity_id()),
+ None => cx.notify(),
+ }
+ }
+
#[cfg(test)]
pub(super) fn part_view_entity(&self, part: Part) -> Option<&gpui::Entity<PartView>> {
self.part_views.get(&part)
@@ -55,6 +70,7 @@ impl Workbench {
self.prepare_moved_view_panes(window, cx);
self.side_bar(window, cx)
}
+ Part::Editor => self.in_part(super::editor_groups::MAIN_PART, |workbench| workbench.editor_groups_part(window, cx)),
_ => unreachable!("{part:?} is drawn by the workbench"),
};
// The labels drawn above asked for the decorations they lack.
diff --git a/native/crates/app/src/workbench/part_view/tests.rs b/native/crates/app/src/workbench/part_view/tests.rs
index 4eb289d42af..6dba8a6023e 100644
--- a/native/crates/app/src/workbench/part_view/tests.rs
+++ b/native/crates/app/src/workbench/part_view/tests.rs
@@ -17,11 +17,11 @@ use crate::workbench::layout::Part;
use crate::workbench::list_scroll::ListId;
/// A folder of 200 files, expanded in the Explorer.
-fn explorer(cx: &mut TestAppContext) -> (PathBuf, gpui::Entity<Workbench>, &mut VisualTestContext) {
+fn explorer<'a>(name: &str, cx: &'a mut TestAppContext) -> (PathBuf, gpui::Entity<Workbench>, &'a mut VisualTestContext) {
let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();
let themes = scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap();
let theme = load_theme(&[themes], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("code-gpui-part-view-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("code-gpui-part-view-{name}-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(dir.join("User")).unwrap();
for index in 0..200 {
@@ -42,29 +42,29 @@ fn draw(cx: &mut VisualTestContext) {
cx.update(|window, cx| drop(window.draw(cx)));
}
-fn side_bar_renders(workbench: &gpui::Entity<Workbench>, cx: &mut VisualTestContext) -> usize {
- workbench.read_with(cx, |workbench, cx| workbench.part_view_entity(Part::SideBar).expect("the side bar draws").read(cx).renders)
+fn part_renders(workbench: &gpui::Entity<Workbench>, part: Part, cx: &mut VisualTestContext) -> usize {
+ workbench.read_with(cx, |workbench, cx| workbench.part_view_entity(part).expect("the part draws").read(cx).renders)
}
/// A frame with nothing changed reuses the side bar; a change of the workbench draws it again; a scroll of the
/// Explorer draws the side bar again without notifying the workbench, so the other parts can stay cached.
#[gpui::test]
fn the_side_bar_draws_again_on_a_workbench_change_and_its_own_scroll_only(cx: &mut TestAppContext) {
- let (dir, workbench, cx) = explorer(cx);
+ let (dir, workbench, cx) = explorer("side-bar", cx);
let notified = Rc::new(Cell::new(0));
let _observer = {
let notified = notified.clone();
cx.update(|_, cx| cx.observe(&workbench, move |_, _| notified.set(notified.get() + 1)))
};
draw(cx);
- let renders = side_bar_renders(&workbench, cx);
+ let renders = part_renders(&workbench, Part::SideBar, cx);
draw(cx);
- assert_eq!(side_bar_renders(&workbench, cx), renders, "an unchanged frame reuses the side bar");
+ assert_eq!(part_renders(&workbench, Part::SideBar, cx), renders, "an unchanged frame reuses the side bar");
workbench.update(cx, |_, cx| cx.notify());
cx.run_until_parked();
draw(cx);
- assert!(side_bar_renders(&workbench, cx) > renders, "a workbench change draws the side bar");
+ assert!(part_renders(&workbench, Part::SideBar, cx) > renders, "a workbench change draws the side bar");
// The pointer enters the pane first: the hover change notifies the workbench, as upstream's does a CSS repaint.
let bounds = workbench.read_with(cx, |workbench, _| workbench.list_scroller(ListId::Explorer).bounds());
cx.simulate_mouse_move(bounds.center(), None, Modifiers::none());
@@ -72,12 +72,43 @@ fn the_side_bar_draws_again_on_a_workbench_change_and_its_own_scroll_only(cx: &m
draw(cx);
cx.run_until_parked();
- let (renders, notifications) = (side_bar_renders(&workbench, cx), notified.get());
+ let (renders, notifications) = (part_renders(&workbench, Part::SideBar, cx), notified.get());
cx.simulate_event(ScrollWheelEvent { position: bounds.center(), delta: ScrollDelta::Lines(point(0., -1.)), modifiers: Modifiers::none(), ..Default::default() });
cx.run_until_parked();
draw(cx);
assert_eq!(workbench.read_with(cx, |workbench, _| workbench.list_scroller(ListId::Explorer).position().y), 50.);
- assert!(side_bar_renders(&workbench, cx) > renders, "the scroll draws the side bar");
+ assert!(part_renders(&workbench, Part::SideBar, cx) > renders, "the scroll draws the side bar");
+ assert_eq!(notified.get(), notifications, "the scroll leaves the workbench unnotified");
+ std::fs::remove_dir_all(dir).unwrap();
+}
+
+/// A scroll of the main part's editor draws the editor part again and leaves the side bar and the workbench alone.
+#[gpui::test]
+fn an_editor_scroll_draws_the_editor_part_alone(cx: &mut TestAppContext) {
+ let (dir, workbench, cx) = explorer("editor", cx);
+ let file = dir.join("long.txt");
+ std::fs::write(&file, "line\n".repeat(500)).unwrap();
+ workbench.update_in(cx, |workbench, window, cx| workbench.open_file(file, true, window, cx));
+ cx.run_until_parked();
+ let notified = Rc::new(Cell::new(0));
+ let _observer = {
+ let notified = notified.clone();
+ cx.update(|_, cx| cx.observe(&workbench, move |_, _| notified.set(notified.get() + 1)))
+ };
+ let viewport = cx.update(|window, _| window.viewport_size());
+ let position = point(viewport.width * 0.7, viewport.height * 0.5);
+ cx.simulate_mouse_move(position, None, Modifiers::none());
+ cx.run_until_parked();
+ draw(cx);
+ cx.run_until_parked();
+
+ let (side_bar, editor, notifications) = (part_renders(&workbench, Part::SideBar, cx), part_renders(&workbench, Part::Editor, cx), notified.get());
+ cx.simulate_event(ScrollWheelEvent { position, delta: ScrollDelta::Lines(point(0., -1.)), modifiers: Modifiers::none(), ..Default::default() });
+ cx.run_until_parked();
+ draw(cx);
+ assert!(workbench.read_with(cx, |workbench, _| workbench.editors.active().unwrap().scroll.top) > 0.);
+ assert!(part_renders(&workbench, Part::Editor, cx) > editor, "the scroll draws the editor part");
+ assert_eq!(part_renders(&workbench, Part::SideBar, cx), side_bar, "the side bar stays cached");
assert_eq!(notified.get(), notifications, "the scroll leaves the workbench unnotified");
std::fs::remove_dir_all(dir).unwrap();
}
diff --git a/native/crates/app/src/workbench/welcome_page.rs b/native/crates/app/src/workbench/welcome_page.rs
index 0ae8b93725f..bba7732978a 100644
--- a/native/crates/app/src/workbench/welcome_page.rs
+++ b/native/crates/app/src/workbench/welcome_page.rs
@@ -265,10 +265,10 @@ impl Workbench {
}
let size = self.welcome.size.clone();
let measure = canvas(
- move |bounds, window, _| {
+ move |bounds, window, cx| {
if size.get() != bounds.size {
size.set(bounds.size);
- window.refresh();
+ super::part_view::redraw_after_frame(window, cx);
}
},
|_, _, _, _| {},
diff --git a/port/ledger.md b/port/ledger.md
index 82970991081..ec837165d10 100644
--- a/port/ledger.md
+++ b/port/ledger.md
@@ -24,7 +24,7 @@ Status: `open`, `in progress`, `waiting on Artur`, `later` (postponed), `done`,
| Milestones | M7 syntax colors and themes | done | TextMate grammars from `contributes.grammars` (vscode-textmate's algorithm, Oniguruma regexes), token colors from the theme's `tokenColors` and `semanticTokenColors`, bracket pair colorization and matching, every built-in color theme including High Contrast Light, `firstLine` language detection. Open gaps: the gaps column of its unit rows. | `port/results/pixels.md` milestone 7 (main window in dark, light, hc and hclight); cargo test -p app syntax:: (colorize_fixtures_match_the_reference: every colorize-tests fixture's scopes and colors) |
| Milestones | M8 editor viewport and editing commands | in progress | Scrolling (wheel, scrollbar, reveal), real `visibleRanges`, minimap, folding, sticky scroll, multi-cursor, find/replace widget, comment toggling, line operations, smart select, font zoom, the editor context menu. Open gaps: the gaps column of its unit rows. | api-tests `editor.test`, `window.test` (text editor parts) and `documents.test` pass as in the reference; pixel-check gains a scrolled long-file window with minimap and a folded region; `cargo test -p app` folding and multi-cursor tests. |
| Milestones | M9 commands, keybindings, menus, quick input | in progress | Command registry shared by the workbench and `vscode.commands`, context keys and `when` clauses, keybinding resolution from `contributes.keybindings` and `keybindings.json`, the native macOS menu bar, context menus, hovers, Command Palette and Quick Open (files, symbols, commands, theme picker), title bar and activity bar clicks. Open gaps: the gaps column of its unit rows. | api-tests `commands.test` and `quickInput.test` pass as in the reference; Cmd+Shift+P runs a command contributed by an extension; Cmd+P opens a fixture file; `cargo test -p app` `when`-clause and keybinding resolution tests against upstream cases. |
-| Milestones | M10 settings, storage, profiles | done | `settings.json` (user, workspace, folder, language overrides) feeding both the workbench and `vscode.workspace.getConfiguration`, configuration schema from `contributes.configuration`, the Settings editor and JSON settings with schema validation, global and workspace storage on disk, secret storage in the macOS Keychain, profiles, real `environment` in init data. Import from VS Code, Cursor and VSCodium (Artur, port feature with no upstream counterpart): a command and a first-run offer that read each installed editor's user data (`~/Library/Application Support/{Code,Cursor,VSCodium}/User`: settings.json, keybindings.json, snippets, the color and icon theme ids) and its extension list (`~/.vscode/extensions`, `~/.cursor/extensions`, `~/.vscode-oss/extensions`, installed again from Open VSX), show what will be imported, write it into the active profile and skip settings and extensions the port has removed (AI, sign-in, Microsoft services, telemetry, remote). Open gaps: the gaps column of its unit rows. | api-tests `configuration.test` and `state.test` pass as in the reference; a setting changed in `settings.json` reaches an extension's `onDidChangeConfiguration`; storage survives a restart; importing from a fixture VS Code, Cursor and VSCodium user data folder gives the same settings, keybindings, snippets and theme in the port. |
+| Milestones | M10 settings, storage, profiles | in progress | `settings.json` (user, workspace, folder, language overrides) feeding both the workbench and `vscode.workspace.getConfiguration`, configuration schema from `contributes.configuration`, the Settings editor and JSON settings with schema validation, global and workspace storage on disk, secret storage in the macOS Keychain, profiles, real `environment` in init data. Import from VS Code, Cursor and VSCodium (Artur, port feature with no upstream counterpart): a command and a first-run offer that read each installed editor's user data (`~/Library/Application Support/{Code,Cursor,VSCodium}/User`: settings.json, keybindings.json, snippets, the color and icon theme ids) and its extension list (`~/.vscode/extensions`, `~/.cursor/extensions`, `~/.vscode-oss/extensions`, installed again from Open VSX), show what will be imported, write it into the active profile and skip settings and extensions the port has removed (AI, sign-in, Microsoft services, telemetry, remote). Open gaps: the gaps column of its unit rows. | api-tests `configuration.test` and `state.test` pass as in the reference; a setting changed in `settings.json` reaches an extension's `onDidChangeConfiguration`; storage survives a restart; importing from a fixture VS Code, Cursor and VSCodium user data folder gives the same settings, keybindings, snippets and theme in the port. |
| Milestones | M11 workbench layout and chrome | in progress | The part grid with sashes and hidden parts, panel and secondary side bar, view containers and collapsible views, tree views from extensions (with the Refactor Preview of workbench/contrib/bulkEdit, which file operation participants open), editor groups and splits, notifications, dialogs (native open/save), progress, banner, status bar entries from extensions, decorations, window lifecycle (close, quit, hot exit backup), multiple windows, focus and inactive look. Open gaps: the gaps column of its unit rows. | api-tests `window.test` (messages, progress, tree views, status bar) pass as in the reference; pixel-check gains a window with panel and split editor; hot exit restores an unsaved buffer after quit. |
| Milestones | M12 files, explorer, search, workspace | in progress | File system service with watcher (FSEvents) and extension file system providers, Explorer file operations (new, rename, delete to Trash, drag and drop, copy/paste), Seti file icons, numeric name collation, workspace trust, multi-root `.code-workspace`, recent workspaces, text search through ripgrep, search view and search editor, bulk edits, local history, opener and URL handling. Open gaps: the gaps column of its unit rows. | api-tests `workspace.test`, `workspace.fs.test`, `workspace.event.test`, `workspace.tasks` excluded, and the api-workspace suite pass as in the reference; pixel-check folder window with Seti icons (reference captured without `workbench.iconTheme: null`); `cargo test -p app` sorting test with `file9`/`file10`. |
| Milestones | M13 language features | in progress | Everything `MainThreadLanguageFeatures` registers, drawn by the native editor: completion, hover, signature help, code actions and lightbulb, code lens, inlay hints, go to definition and peek, references, rename, formatting, document symbols and Outline, semantic tokens, semantic word highlight, links, color picker, linked editing, snippets, call and type hierarchy, inline completions from extensions; diagnostics with squiggles and the Problems panel; comments threads; Emmet; the language status item. Open gaps: the gaps column of its unit rows. | api-tests `languages.test`, `languagefeatures.test`-family and `comments` cases pass as in the reference; with `src/main.ts` open TypeScript completion, hover, go to definition and a diagnostic squiggle work (pixel-check window with a squiggle and the suggest widget). |
@@ -407,7 +407,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston
| workbench/services/language | workbench service | M7 | verified | | getAssociationByPath with the full glob dialect (languages::tests::file_patterns_take_the_whole_glob_dialect) plus firstLine detection (languages.rs); cargo test -p app languages::tests |
| workbench/services/languageDetection | workbench service | M13 | ported | [3 S] workbench/language_detection.rs: 4 s after typing a Python snippet into a new untitled editor (Cmd+N in a ui-pair run, hc) the port's language entry shows Python, the reference's still Plain Text, also after 12 s; not yet known whether the reference build lacks the detection model or the port detects where upstream does not | language_detection.rs (languageDetectionWebWorker.ts `detectLanguagesImpl`, `adjustLanguageConfidence`, the 10000 char sample) and workbench/language_detection.rs (`LanguageDetectionWorkerClient`: the file name guess first, then @vscode/vscode-languagedetection 1.0.23 with its model in a Bun worker from the app's node_modules, model ids mapped as `getLanguageId`; `autoDetectLanguage` of textEditorModel.ts for untitled models and extensionless plain text files, 600 ms throttle, skipped after an explicit language and with `workbench.editor.languageDetection` off): cargo test -p app language_detection (the worker test runs the real model). The history biases only feed the regexp model, which 1.147.0 does not ship (`vscode-regexp-languagedetection` is not a dependency), so neither side has it; no telemetry |
| workbench/services/languageStatus | workbench service | M13 | verified | | `$setLanguageStatus` / `$removeLanguageStatus`, statuses matched by selector, ordered by severity, source, id (workbench/language_status.rs): cargo test -p app language_status |
-| workbench/services/layout | workbench service | M11 | ported | [3 L] editor_status.rs:606, content_hover.rs:498: no workbench-wide Tab order (the browser's DOM order): Tab stops at the content hover's ends, and Tab on the status bar in Tab Focus Mode keeps the focus (port/notes.md Toggle Tab Key Moves Focus) <br> [3 L] workbench.rs:591: the Workbench is one GPUI view, so every scroll frame of any list renders and lays out every part again, where upstream's DOM updates only the scrolled list; the side bar is a cached part view (part_view.rs: a list scroll notifies only the view it was painted in), the other parts still render with the Workbench, which GPUI renders whole every frame; `scroll_frame_time` median / p95 with the side bar cached: Explorer 11.1 / 15.1 ms, Editor 8.6 / 10.1 ms, Settings 2.1 / 2.5 ms (Extensions 2.7 / 3.3 meets it); each `key_context` caller clones every `config.*` key (keyboard.rs:400), the menubar and the timeline toolbar are rebuilt; the next steps are the editor area, panel, status bar, activity bar and title bar part views (port/notes.md Scroll frame costs, cheap steps). GUI (Studio at load 33 to 57, 60 Hz display, 690 trackpad events in 7 s): main thread in `Window::draw` 86% scrolling the Explorer (800 files), 89% the Extensions @builtin list (port/notes.md Scroll frame costs) | layout.ts as a split-view tree (workbench/layout.rs): panel position (bottom, top, left, right) and alignment, primary side bar left or right, maximized panel with `panelMaximizationSupportedWhen`, hidden parts, persisted sizes and positions; zen mode (zen_mode.rs) with its settings and restore; centered layout (centered_layout.rs) with its sashes and stored margins; View > Appearance entries and the Panel Position and Align Panel submenus (cargo test -p app -- layout part_grid centered_layout zen_mode); layoutActions.ts Customize Layout quick pick (workbench/customize_layout.rs) with live items, Restore Defaults and Close, Toggle Activity Bar Visibility, Align Quick Input Top/Center (cargo test -p app -- customize_layout toggling_the_activity_bar; ui-pair m11/manage-menu.json, port/results/manage-menu.md; missing until then though the title bar showed its button); ui-pair layout-positions.json and layout-zen.json against the reference (port/results/layout.md). The pairs run with `zenMode.fullScreen` off. Maximize Secondary Side Bar (`workbench.action.maximizeAuxiliaryBar`, `restoreAuxiliaryBar`, `toggleMaximizedAuxiliaryBar`, the title's toggle) hides the other parts and restores them (workbench/panel.rs; cargo test -p app -- maximizing_the_secondary_side_bar_hides_the_other_parts_and_restore_brings_them_back). Zen mode enforces `zenMode.showTabs` on the main editor part until it ends (layout.ts `toggleZenMode` `enforcePartOptions`; workbench/zen_mode.rs `editor_show_tabs`; cargo test -p app -- show_tabs_picks_the_title_control_and_zen_mode_enforces_its_own); navigationActions.ts `workbench.action.focusNextPart`/`focusPreviousPart` (F6, Shift+F6) walk editor, panel, auxiliary bar, status bar, activity bar and side bar past the hidden ones with layout.ts `focusPart` (the pane container's first expanded view; workbench/part_navigation.rs; cargo test -p app f6_walks_the_visible_parts); in an editor window F6 goes between its editor and its own status bar, whose entry focus is kept per window (workbench/auxiliary_windows.rs `auxiliary_status_bar`, workbench/status_entries.rs; cargo test -p app f6_in_an_editor_window_reaches_its_own_status_bar) |
+| workbench/services/layout | workbench service | M11 | ported | [3 L] editor_status.rs:606, content_hover.rs:498: no workbench-wide Tab order (the browser's DOM order): Tab stops at the content hover's ends, and Tab on the status bar in Tab Focus Mode keeps the focus (port/notes.md Toggle Tab Key Moves Focus) <br> [3 L] workbench.rs:591: the Workbench is one GPUI view, so every scroll frame of any list renders and lays out every part again, where upstream's DOM updates only the scrolled list; the side bar and the editor area are cached part views (part_view.rs: a list scroll notifies only the view it was painted in, an editor scroll only the editor area's, a size measured while drawing redraws its view after the frame), the other parts still render with the Workbench, which GPUI renders whole every frame; `scroll_frame_time` median / p95 with both cached (two runs, the Studio shared): Explorer 10.6 / 14.6 and 11.2 / 23.9 ms, Editor 7.9 / 18.7 and 8.5 / 19.9 ms, Settings 1.8 / 2.2 and 2.0 / 5.8 ms (Extensions 2.4 / 2.8 and 2.5 / 4.9); each `key_context` caller clones every `config.*` key (keyboard.rs:400), the menubar and the timeline toolbar are rebuilt; the next steps are the panel, status bar, activity bar and title bar part views (port/notes.md Scroll frame costs, cheap steps). GUI (Studio at load 33 to 57, 60 Hz display, 690 trackpad events in 7 s): main thread in `Window::draw` 86% scrolling the Explorer (800 files), 89% the Extensions @builtin list (port/notes.md Scroll frame costs) | layout.ts as a split-view tree (workbench/layout.rs): panel position (bottom, top, left, right) and alignment, primary side bar left or right, maximized panel with `panelMaximizationSupportedWhen`, hidden parts, persisted sizes and positions; zen mode (zen_mode.rs) with its settings and restore; centered layout (centered_layout.rs) with its sashes and stored margins; View > Appearance entries and the Panel Position and Align Panel submenus (cargo test -p app -- layout part_grid centered_layout zen_mode); layoutActions.ts Customize Layout quick pick (workbench/customize_layout.rs) with live items, Restore Defaults and Close, Toggle Activity Bar Visibility, Align Quick Input Top/Center (cargo test -p app -- customize_layout toggling_the_activity_bar; ui-pair m11/manage-menu.json, port/results/manage-menu.md; missing until then though the title bar showed its button); ui-pair layout-positions.json and layout-zen.json against the reference (port/results/layout.md). The pairs run with `zenMode.fullScreen` off. Maximize Secondary Side Bar (`workbench.action.maximizeAuxiliaryBar`, `restoreAuxiliaryBar`, `toggleMaximizedAuxiliaryBar`, the title's toggle) hides the other parts and restores them (workbench/panel.rs; cargo test -p app -- maximizing_the_secondary_side_bar_hides_the_other_parts_and_restore_brings_them_back). Zen mode enforces `zenMode.showTabs` on the main editor part until it ends (layout.ts `toggleZenMode` `enforcePartOptions`; workbench/zen_mode.rs `editor_show_tabs`; cargo test -p app -- show_tabs_picks_the_title_control_and_zen_mode_enforces_its_own); navigationActions.ts `workbench.action.focusNextPart`/`focusPreviousPart` (F6, Shift+F6) walk editor, panel, auxiliary bar, status bar, activity bar and side bar past the hidden ones with layout.ts `focusPart` (the pane container's first expanded view; workbench/part_navigation.rs; cargo test -p app f6_walks_the_visible_parts); in an editor window F6 goes between its editor and its own status bar, whose entry focus is kept per window (workbench/auxiliary_windows.rs `auxiliary_status_bar`, workbench/status_entries.rs; cargo test -p app f6_in_an_editor_window_reaches_its_own_status_bar) |
| workbench/services/lifecycle | workbench service | M11 | ported | [3 L] unattendedRestart.ts: the participants terminalUnattendedRestart.ts, testingUnattendedRestart.ts, webviewUnattendedRestart.ts, notebookUnattendedRestart.ts and testingContinuousRunService.ts `testing.continuousRun` are not ported (the port's terminal has no `hasChildProcesses`), the editor detail names the scheme where upstream names `typeId`, `workbench.floatingWindowNotRestorable` cannot occur (the port's auxiliary windows are all editor parts), and nothing calls `can_restart_unattended` yet: platform/update's `UnattendedRestartScheduler` (restart to update while the screen is locked, with `update.restartWhenIdle` on), `quitAndInstall` with `unattended` and windowsStateHandler.ts `setNextExactRestore` are not ported | workbench/lifecycle.rs: ShutdownReason, onBeforeShutdown vetoes on quit, close button, closeWindow, reload and load (`window.confirmBeforeClose`, backup tracker auto save, hot exit, showSaveConfirm); cargo test -p app lifecycle; no phases or onWillShutdown joiners; workbench/unattended_restart.rs: `canRestartUnattended` with its blocker aggregation and change log, and the participants `workbench.starting` (2.5 s after restore), dialog, quick input, transient workspace, modal editor, editors not restored or not restorable, `debug.sessionActive`, `tasks.running`, the backup tracker's `workingCopy.*` and `cli.waitingForEditorClose`: cargo test -p app unattended_restart (unattendedRestart.test.ts); verified: cargo test -p app backup_tracker lifecycle (workingCopyBackupTracker.test.ts); ui-pair hot-exit.json `dirty`, `restored` vs the reference (port/results/windows.md, milestone 11 verification) |
| workbench/services/localTranscription | workbench service | | removed | | no AI or Microsoft services by decision (port/notes.md); API stays inert |
| workbench/services/localization | workbench service | M18 | verified | | ui-pair port/fixtures/extensions/ui-display-language.json: picking Deutsch installs MS-CEINTL.vscode-language-pack-de with the "Installing Deutsch language support..." progress and asks "Restart VSRustium to switch to Deutsch?"; localeService.ts: argv.json `locale` written and cleared, restart dialog, install of an MS-CEINTL pack: cargo test -p app nls localization; Command Palette titles, categories and descriptions translate by the reference call's module and key (port/tools/ref-commands with ref-nls-clone.ts; cargo test -p app a_palette_title_two_modules), menu bar items, side bar titles and pane headers by the reference's `nlsKeys` per menu, view and container (cargo test -p app menu_bar_items_and_view_titles_resolve_per_scope); other surfaces stay English (port/notes.md) |
@@ -520,7 +520,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston
| workbench/contrib/output | workbench contribution | M15 | verified | | Open Output in Editor and Open Log... open the channel's `output:` resource pinned in a read-only text editor of the editor groups, sharing the Output view's model and following the channel (cargo test -p app open_output_in_editor_shows_the_channel_in_an_editor_group); output/compound.rs and workbench/output_compound.rs (Add Compound Log..., Remove Output..., entries merged by timestamp); output_view.rs and output_actions.rs: read-only Output view with the channel dropdown, filter box with level and category menus, Clear Output, Toggle Auto Scrolling, log level gear, Open Output in Editor, Show Output Channels, `workbench.action.output.show.<id>`, Cmd+Shift+U toggle, the Window and Extension Host channels; the view is a panel view whose editor sits in the hidden panel group since milestone 11 (cargo test -p app toggle_output_opens_and_closes_the_view); a quiet reveal offers the channel in the status bar (cargo test -p app a_quiet_reveal_offers_the_channel_in_the_status_bar); the title's "..." with Save Output As..., Export Logs... (picker or `outputChannelIds`/`outputPath`), Add Compound Log... and Import Log... (cargo test -p app logs_export_to_a_file_and_import_as_a_channel); links through milestone 13's link contribution (output/links.rs `compute_links`, cargo test -p app output_paths_in_the_workspace_are_links compute_links); the filters hide lines as the editor's hidden areas, the model keeps every line, include pattern matches are find match decorations (cargo test -p app filters_hide_log_entries filters_hide_entries_and_lines): cargo test -p app output |
| workbench/contrib/performance | workbench contribution | M19 | verified | | Developer: Startup Performance (perf_view.rs, perfviewEditor.ts): System Info, Performance Marks from the timer service, Extension Activation Stats, Raw Perf Marks of the renderer and localExtHost; inputLatencyContrib, startupTimings and the auto profilers only report telemetry or take V8 profiles (no telemetry by decision, platform/profiling n/a); cargo test -p app timer:: perf_view; System Info takes the CPU speed and VM likelihood as Node's `os` reports them and no process memory, which 1.147 turns off (cargo test -p app the_system_info_lists apple_silicon_reports_libuvs_fallback_cpu_speed) |
| workbench/contrib/policyExport | workbench contribution | M10 | removed | | build tool: `--export-policy-data` writes the policy definitions that upstream's build turns into ADMX and macOS profiles; the port ships no policy templates |
-| workbench/contrib/preferences | workbench contribution | M10 | verified | [1 S] settings_editor_view/tests.rs:20: the tests share one temp folder per process and each removes it, so a_solid_cursor_blinking_keeps_the_search_caret failed once in a parallel run of `cargo test -p app -- workbench::` (passes alone and on a rerun) | A policy-managed setting disables its select, input box, checkbox and array and include/exclude lists, and its indicator's hover runs View policy settings (`@hasPolicy`): cargo test -p app a_policy_setting_disables_its_select_and_its_hover_applies_the_policy_filter. The `@lang:` filter shows the language block's value (settingsTreeModels.ts `inspectSetting`): cargo test -p app the_lang_filter_shows_the_language_block_value; setting descriptions as markdown (paragraphs, emphasis, lists, code, setting links): cargo test -p app descriptions_render_emphasis_lists_and_setting_links; ui-pair against the reference in port/results/settings-editor.md; keybindingsEditor.ts, keybindingWidgets.ts and the keybindings actions of preferences.contribution.ts ported as workbench/keybindings_editor_view.rs (cargo test -p app keybindings_editor_view, port/results/keybindings-editor.md; a contributing extension's name opens it: cargo test -p app an_extension_source_opens_the_extension); keybindingsEditorContribution.ts and smartSnippetInserter.ts ported as workbench/define_keybinding.rs and smart_snippet_inserter.rs (cargo test -p app define_keybinding smart_snippet_inserter, raw/keybindings-editor/define-file-*.png); settingsEditor2.ts, settingsTree.ts, settingsTreeModels.ts, settingsLayout.ts, tocTree.ts, preferencesSearch.ts (local search), settingsSearchMenu.ts, settingsEditorSettingIndicators.ts and the settings targets widget ported as settings_editor.rs and workbench/settings_editor_view.rs (cargo test -p app settings_editor); settingsWidgets.ts list and object widgets, the search suggest widget, search history and the TOC sash ported (cargo test -p app settings_editor); preferencesRenderers.ts UnsupportedSettingsRenderer ported as workbench/preferences/unsupported_settings.rs, with the untrusted-workspace warning and its Manage Workspace Trust quick fix (cargo test -p app preferences unsupported_settings); keyboardLayoutPicker.ts n/a (web only); the marks' messages in the editor hover: cargo test -p app the_editor_hover_shows_the_message_of_a_marked_key |
+| workbench/contrib/preferences | workbench contribution | M10 | ported | [3 S] settings_editor_view/tests.rs:20: the tests share one temp folder per process and each removes it, so a_solid_cursor_blinking_keeps_the_search_caret failed once in a parallel run of `cargo test -p app -- workbench::` (passes alone and on a rerun) | A policy-managed setting disables its select, input box, checkbox and array and include/exclude lists, and its indicator's hover runs View policy settings (`@hasPolicy`): cargo test -p app a_policy_setting_disables_its_select_and_its_hover_applies_the_policy_filter. The `@lang:` filter shows the language block's value (settingsTreeModels.ts `inspectSetting`): cargo test -p app the_lang_filter_shows_the_language_block_value; setting descriptions as markdown (paragraphs, emphasis, lists, code, setting links): cargo test -p app descriptions_render_emphasis_lists_and_setting_links; ui-pair against the reference in port/results/settings-editor.md; keybindingsEditor.ts, keybindingWidgets.ts and the keybindings actions of preferences.contribution.ts ported as workbench/keybindings_editor_view.rs (cargo test -p app keybindings_editor_view, port/results/keybindings-editor.md; a contributing extension's name opens it: cargo test -p app an_extension_source_opens_the_extension); keybindingsEditorContribution.ts and smartSnippetInserter.ts ported as workbench/define_keybinding.rs and smart_snippet_inserter.rs (cargo test -p app define_keybinding smart_snippet_inserter, raw/keybindings-editor/define-file-*.png); settingsEditor2.ts, settingsTree.ts, settingsTreeModels.ts, settingsLayout.ts, tocTree.ts, preferencesSearch.ts (local search), settingsSearchMenu.ts, settingsEditorSettingIndicators.ts and the settings targets widget ported as settings_editor.rs and workbench/settings_editor_view.rs (cargo test -p app settings_editor); settingsWidgets.ts list and object widgets, the search suggest widget, search history and the TOC sash ported (cargo test -p app settings_editor); preferencesRenderers.ts UnsupportedSettingsRenderer ported as workbench/preferences/unsupported_settings.rs, with the untrusted-workspace warning and its Manage Workspace Trust quick fix (cargo test -p app preferences unsupported_settings); keyboardLayoutPicker.ts n/a (web only); the marks' messages in the editor hover: cargo test -p app the_editor_hover_shows_the_message_of_a_marked_key |
| workbench/contrib/processExplorer | workbench contribution | M19 | verified | | workbench/process_explorer.rs on ps.rs: Open Process Explorer (Developer and Help menu) in a floating window (no auxiliary editor windows in the port), the tree under the app's pid refreshed after each listing, Kill/Force Kill/Copy/Copy All, Debug for `isDebuggable` processes through `debug.startFromConfig` with `attachTo`'s port or pid (cargo test -p app a_node_process_gets_debug), Alt+E, bounds stored; port/tools/shell-gui-check (Help > Open Process Explorer: window "Process Explorer", AXOutline with the vsrustium root and the extension host rows); cargo test -p app process_explorer ps:: |
| workbench/contrib/quickaccess | workbench contribution | M9 | verified | | commandsQuickAccess.ts as quick_access.rs and command_palette.rs; helpQuickAccess `?` with the providers the port has and the More help pick (cargo test -p app quick_access command_palette tf_idf title_bar), history in profile storage; the workbench's palette items are the reference's, listed when the port registers their command; viewQuickAccess.ts as quick_access/views.rs: `view `, Open View, Quick Open View (Ctrl+Q) and `inViewsPicker` list the side bar, panel and secondary side bar containers, their views under `Parent / Child` separators, the terminals, the separate debug consoles and the output channels; Ctrl+Q again moves to the next pick and releasing Ctrl opens it (quickInput.ts `quickNavigate`) (quick_access::tests::the_view_picker_groups_views_by_container_and_opens_the_pick) |
| workbench/contrib/relauncher | workbench contribution | M19 | verified | | workbench/relauncher.rs: SettingsChangeRelauncher's macOS settings (chat and agent host ones left out with AI) ask to restart, Restart relaunches with the same arguments, a changed default (`ConfigurationTarget.DEFAULT`) takes the new value without asking; port/tools/shell-gui-check (window.nativeTabs changed in settings.json: prompt shown, old process quit, 1 new process); cargo test -p app relauncher a_changed_default_does_not_ask_to_restart |