Skip to content

Visual Studio Code, rebuilt in Rust

Rust

feat(views): move the Extensions and Testing containers

rokarture295419ec80f
diff --git a/native/crates/app/src/workbench.rs b/native/crates/app/src/workbench.rs
index ec396e29f07..6b190e9408e 100644
--- a/native/crates/app/src/workbench.rs
+++ b/native/crates/app/src/workbench.rs
@@ -1642,13 +1642,13 @@ impl Workbench {
/// The Testing container shows while it has a view (`hideIfEmpty`).
fn testing_activity_item(&self, hover: HoverOptions, inactive: Rgba, cx: &mut Context<Self>) -> Option<gpui::Stateful<Div>> {
- if !self.testing_container_shown() || self.unpinned_containers().iter().any(|id| id == "workbench.view.testing") {
+ if !self.testing_container_shown() || self.container_location(view_locations::TESTING_CONTAINER) != layout::Part::SideBar || self.unpinned_containers().iter().any(|id| id == "workbench.view.testing") {
return None;
}
let active = self.side_bar_view == SideBarView::Testing && self.side_bar_visible();
let icon = if active { self.active_view_icon("beaker") } else { self.icon("beaker", 36., 24., inactive) };
let command = "workbench.view.testing";
- Some(self.activity_composite_item(self.action_bar_item("activity", command, icon.id(command), cx), command, "Testing", cx).cursor_pointer().child(self.action_hover("Testing", command, hover)).on_click(cx.listener(move |workbench, event: &ClickEvent, window, cx| workbench.activity_item_clicked(active, command, event, window, cx))))
+ Some(self.activity_composite_item(self.action_bar_item("activity", command, icon.id(command), cx), command, "Testing", cx).debug_selector(move || command.to_owned()).cursor_pointer().child(self.action_hover("Testing", command, hover)).on_click(cx.listener(move |workbench, event: &ClickEvent, window, cx| workbench.activity_item_clicked(active, command, event, window, cx))))
}
/// The checked view: a 32px rounded indicator behind the icon (activityaction.css); High Contrast
diff --git a/native/crates/app/src/workbench/extensions_list_view.rs b/native/crates/app/src/workbench/extensions_list_view.rs
index 5014a2deece..c18151d6aab 100644
--- a/native/crates/app/src/workbench/extensions_list_view.rs
+++ b/native/crates/app/src/workbench/extensions_list_view.rs
@@ -83,7 +83,7 @@ impl Workbench {
pub(super) fn extensions_view(&self, window: &Window, cx: &mut Context<Self>) -> Div {
let panes = &self.extensions_viewlet.panes;
let list_focused = self.extensions_viewlet.list_focus.is_focused(window);
- let body = div().id("extensions-panes").track_focus(&self.extensions_viewlet.list_focus).flex_1().min_h_0().flex().flex_col();
+ let body = div().id("extensions-panes").debug_selector(|| "extensions-panes".into()).track_focus(&self.extensions_viewlet.list_focus).flex_1().min_h_0().flex().flex_col();
let body = match panes.as_slice() {
[] => body,
[pane] => body.children(self.extensions_pane_body(0, pane, list_focused, cx)),
diff --git a/native/crates/app/src/workbench/extensions_view.rs b/native/crates/app/src/workbench/extensions_view.rs
index b33942a755f..f7815313d52 100644
--- a/native/crates/app/src/workbench/extensions_view.rs
+++ b/native/crates/app/src/workbench/extensions_view.rs
@@ -16,7 +16,6 @@ use serde_json::{Value, json};
use super::Workbench;
use super::extension_bisect::BisectState;
use super::input_box_view::InputView;
-use super::search_view::SideBarView;
use super::view_panes::{MINIMUM_BODY_SIZE, PaneContainer};
use crate::commands::Outcome;
use crate::extension_recommendations as recommendations;
@@ -629,7 +628,7 @@ impl Workbench {
/// `openExtensionsViewlet`: the view shows and its search box takes the focus.
pub(super) fn open_extensions_viewlet(&mut self, window: &mut Window, cx: &mut Context<Self>) {
let first_open = self.extensions_viewlet.panes.is_empty();
- self.side_bar_view = SideBarView::Extensions;
+ self.show_view_container(VIEWLET_ID, cx);
if first_open {
self.show_extensions_views(false, window, cx);
}
@@ -639,7 +638,7 @@ impl Workbench {
/// `search(value)`: the box takes the text and the views show it at once.
pub(super) fn search_extensions(&mut self, value: &str, window: &mut Window, cx: &mut Context<Self>) {
- self.side_bar_view = SideBarView::Extensions;
+ self.show_view_container(VIEWLET_ID, cx);
self.extensions_viewlet.search.set_value(value.to_owned());
self.extensions_viewlet.search.select(value.chars().count(), value.chars().count());
window.focus(&self.extensions_viewlet.search_focus.clone(), cx);
diff --git a/native/crates/app/src/workbench/panel.rs b/native/crates/app/src/workbench/panel.rs
index 6bf798408d5..77128af361c 100644
--- a/native/crates/app/src/workbench/panel.rs
+++ b/native/crates/app/src/workbench/panel.rs
@@ -187,9 +187,6 @@ impl Workbench {
/// `moveViewContainerToLocation` and `openViewContainer(id, true)` of a container moved to `part`. Only moved
/// containers keep an entry (`saveViewCustomizations` skips the default location).
pub(super) fn move_view_container(&mut self, id: &'static str, part: Part, window: &mut Window, cx: &mut Context<Self>) {
- if !self.can_move_container(id) {
- return;
- }
let at_default = part == self.default_container_location(id) && !is_generated_container(id);
let mut customizations = self.view_customizations();
let locations = customizations["viewContainerLocations"].as_object_mut().expect("normalized");
@@ -340,6 +337,13 @@ impl Workbench {
tabs.push(CompositeTab { id, title: super::tree_view::static_id(title), view: view.id });
}
}
+ // The side bar's Extensions and Testing moved here.
+ if self.container_location(super::extensions_view::VIEWLET_ID) == part {
+ tabs.push(CompositeTab { id: super::extensions_view::VIEWLET_ID, title: "Extensions", view: super::extensions_view::VIEW_IDS[0] });
+ }
+ if self.testing_container_shown() && self.container_location(super::view_locations::TESTING_CONTAINER) == part {
+ tabs.push(CompositeTab { id: super::view_locations::TESTING_CONTAINER, title: "Testing", view: super::testing_view::TESTING_VIEW });
+ }
for id in self.generated_containers_in(part) {
let view = self.generated_container_view(id).expect("a container with a view");
tabs.push(CompositeTab { id, title: super::tree_view::static_id(&self.container_title(id)), view: view.id });
@@ -476,7 +480,14 @@ impl Workbench {
/// The container's content and title actions: a single view merged into it (its body, its actions in the
/// composite title), several as panes with the container's "..." (`MenuId.ViewContainerTitle`).
fn panel_container_content(&mut self, container: &'static str, window: &mut Window, cx: &mut Context<Self>) -> (AnyElement, Option<AnyElement>) {
- let views: Vec<&'static str> = self.views_in(container).into_iter().filter(|view| self.movable_view_shown(view)).map(|view| view.id).collect();
+ if container == super::extensions_view::VIEWLET_ID {
+ return (self.extensions_view(window, cx).into_any_element(), Some(self.extensions_title_actions(cx).into_any_element()));
+ }
+ let mut views: Vec<&'static str> = self.views_in(container).into_iter().filter(|view| self.movable_view_shown(view)).map(|view| view.id).collect();
+ // testing.contribution.ts: the Test Explorer comes first while `testing.providerCount > 0`.
+ if container == super::view_locations::TESTING_CONTAINER && !self.testing.controllers.is_empty() {
+ views.insert(0, super::testing_view::TESTING_VIEW);
+ }
if let [view] = views[..] {
let pane = self.movable_view_pane(view, window, cx);
return (pane.body, pane.actions);
diff --git a/native/crates/app/src/workbench/testing_view.rs b/native/crates/app/src/workbench/testing_view.rs
index 81401905c90..6cc32419685 100644
--- a/native/crates/app/src/workbench/testing_view.rs
+++ b/native/crates/app/src/workbench/testing_view.rs
@@ -82,8 +82,7 @@ impl Workbench {
pub(super) fn register_testing_commands(&mut self) {
self.commands.register("workbench.view.testing", |workbench, _, _, cx| {
- workbench.side_bar_view = super::search_view::SideBarView::Testing;
- workbench.set_part_hidden(super::layout::Part::SideBar, false, cx);
+ workbench.show_view_container(super::view_locations::TESTING_CONTAINER, cx);
Outcome::done()
});
self.register_testing_continuous_commands();
@@ -260,7 +259,7 @@ impl Workbench {
}
actions = actions.child(self.search_action("collapse-all", "testing.collapseAll", true, cx));
}
- let mut body = div().id("testing-tree").flex_1().min_h_0().overflow_y_scroll().flex().flex_col();
+ let mut body = div().id("testing-tree").debug_selector(|| "testing-tree".into()).flex_1().min_h_0().overflow_y_scroll().flex().flex_col();
if !has_tests {
// testing.contribution.ts `registerViewWelcomeContent` of the Test Explorer.
body = body.child(div().px(px(20.)).py(px(13.)).text_size(px(13.)).child("No tests have been found in this workspace yet."));
diff --git a/native/crates/app/src/workbench/view_locations.rs b/native/crates/app/src/workbench/view_locations.rs
index 9acf19c438d..ed4a0b2ef5c 100644
--- a/native/crates/app/src/workbench/view_locations.rs
+++ b/native/crates/app/src/workbench/view_locations.rs
@@ -220,12 +220,6 @@ impl Workbench {
own.into_iter().chain(moved_in).chain(self.generated_containers()).filter(|id| self.container_location(id) == part).collect()
}
- /// Whether Move To and a composite drop move the container. shortcut: the Extensions and Testing containers draw
- /// views the port does not move (ledger gap of workbench/services/views); upgrade with movable views of their own.
- pub(super) fn can_move_container(&self, container: &str) -> bool {
- container != super::extensions_view::VIEWLET_ID && container != TESTING_CONTAINER
- }
-
/// The movable views in the container, in the movable views' order.
// Upstream sorts a container's views by descriptor `order` (none last); the movable views' order matches it for
// the Explorer's views moved beside a panel view (move-view.json), not in general (port/notes.md).
@@ -323,7 +317,8 @@ impl Workbench {
/// A side bar whose container moved to a panel shows the first container left in it, as paneCompositePart.ts
/// opens the default one when the active one is removed.
pub(super) fn leave_moved_side_bar_container(&mut self) {
- if self.side_bar_container().is_none_or(|container| self.container_location(container) == Part::SideBar) {
+ let container = if self.side_bar_view == SideBarView::Extensions { Some(super::extensions_view::VIEWLET_ID) } else { self.side_bar_container() };
+ if container.is_none_or(|container| self.container_location(container) == Part::SideBar) {
return;
}
self.side_bar_view = self.containers_in(Part::SideBar).first().map_or(SideBarView::Extensions, |container| side_bar_view_of(container));
@@ -409,6 +404,7 @@ impl Workbench {
TIMELINE_VIEW => self.timeline_pane(window, cx),
SEARCH_VIEW => self.search_view_pane(window, cx),
SCM_REPOSITORIES_VIEW => self.scm_repositories_pane(window, cx),
+ super::testing_view::TESTING_VIEW => self.testing_view_pane(window, cx),
SCM_CHANGES_VIEW => self.scm_changes_pane(window, cx),
SCM_HISTORY_VIEW => {
let provider = self.active_scm_provider().expect("Graph shows with a history provider");
diff --git a/native/crates/app/src/workbench/view_locations/tests.rs b/native/crates/app/src/workbench/view_locations/tests.rs
index d810df6197e..517f98e5cb7 100644
--- a/native/crates/app/src/workbench/view_locations/tests.rs
+++ b/native/crates/app/src/workbench/view_locations/tests.rs
@@ -378,3 +378,47 @@ fn the_explorer_item_drags_to_the_secondary_side_bar_and_its_tab_back_to_the_act
assert_eq!(stored(&profile)["viewContainerLocations"], json!({}));
assert_eq!(workbench.read_with(cx, |workbench, _| workbench.side_bar_view), SideBarView::Explorer);
}
+
+/// extensions.contribution.ts and testing.contribution.ts register their containers without a fixed location: Move
+/// To takes them to the panel and the secondary side bar, where their open commands show them.
+#[gpui::test]
+fn the_extensions_and_testing_containers_move_to_the_panel_and_the_secondary_side_bar(cx: &mut TestAppContext) {
+ let profile = Arc::new(Mutex::new(Storage::in_memory()));
+ let (workbench, cx) = open(profile.clone(), cx);
+ let extensions = crate::workbench::extensions_view::VIEWLET_ID;
+ workbench.update(cx, |workbench, cx| {
+ workbench.testing.controllers.insert("port".into(), crate::workbench::testing_service::Controller { label: "Port".into(), capabilities: 0 });
+ cx.notify();
+ });
+ cx.update(|window, cx| drop(window.draw(cx)));
+ assert!(cx.debug_bounds("workbench.view.testing").is_some(), "a test controller shows the Testing item");
+ workbench.update_in(cx, |workbench, window, cx| {
+ drop(workbench.execute_command(extensions, Vec::new(), window, cx));
+ drop(workbench.execute_command(&format!("moveViewContainerTo{}", location_code(Part::Panel)), vec![json!(extensions)], window, cx));
+ drop(workbench.execute_command(&format!("moveViewContainerTo{}", location_code(Part::AuxiliaryBar)), vec![json!("workbench.view.testing")], window, cx));
+ });
+ cx.run_until_parked();
+ assert_eq!(stored(&profile)["viewContainerLocations"], json!({ extensions: 1, TESTING_CONTAINER: 2 }));
+ assert_eq!(workbench.read_with(cx, |workbench, _| workbench.side_bar_view), SideBarView::Explorer, "the side bar leaves the moved Extensions");
+ cx.update(|window, cx| drop(window.draw(cx)));
+ assert!(cx.debug_bounds(extensions).is_none(), "the Extensions item leaves the activity bar");
+ assert!(cx.debug_bounds("workbench.view.testing").is_none(), "the Testing item leaves the activity bar");
+ assert!(cx.debug_bounds("testing-tree").is_some(), "the secondary side bar shows the Test Explorer");
+
+ workbench.update_in(cx, |workbench, window, cx| {
+ workbench.hide_panel(cx);
+ drop(workbench.execute_command(extensions, Vec::new(), window, cx));
+ });
+ cx.run_until_parked();
+ assert_eq!(workbench.read_with(cx, |workbench, _| workbench.active_panel_id()), Some(extensions));
+ cx.update(|window, cx| drop(window.draw(cx)));
+ assert!(cx.debug_bounds("extensions-panes").is_some(), "the panel shows the Extensions views");
+
+ workbench.update_in(cx, |workbench, window, cx| {
+ drop(workbench.execute_command("resetLocationAction", vec![json!(extensions)], window, cx));
+ drop(workbench.execute_command("resetLocationAction", vec![json!("workbench.view.testing")], window, cx));
+ });
+ cx.run_until_parked();
+ assert_eq!(stored(&profile)["viewContainerLocations"], json!({}));
+ assert_eq!(workbench.read_with(cx, |workbench, _| workbench.side_bar_view), SideBarView::Testing);
+}
diff --git a/port/fixtures/ui-pair/contributed-panes.json b/port/fixtures/ui-pair/contributed-panes.json
index e2ead0aa316..1c74f5dd556 100644
--- a/port/fixtures/ui-pair/contributed-panes.json
+++ b/port/fixtures/ui-pair/contributed-panes.json
@@ -21,5 +21,11 @@
{ "wait": 800 },
{ "dragShot": [26, 321, 600, 505] },
{ "wait": 1500 },
- { "shot": "moved" }
+ { "shot": "moved" },
+ { "dragShot": [26, 232, 600, 505] },
+ { "wait": 1500 },
+ { "shot": "extensions-moved" },
+ { "dragShot": [26, 232, 600, 505] },
+ { "wait": 1500 },
+ { "shot": "testing-moved" }
]
diff --git a/port/ledger.md b/port/ledger.md
index a866e5f48fe..a353328851a 100644
--- a/port/ledger.md
+++ b/port/ledger.md
@@ -456,7 +456,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston
| workbench/services/userDataProfile | workbench service | M10 | verified | | one app-wide `UserDataProfilesService` (a gpui Global in app/src/user_data_profile.rs) for every window of the process: profile windows open in this process, a transient profile lives while a window runs it (userDataProfilesHandler.ts cleanup on close), and `onDidChangeProfiles` reaches every window (cargo test -p app workbench::user_data_profile: profile_windows_open_in_this_process, every_window_sees_a_profile_another_window_creates_and_removes); userDataProfileManagement.ts `switchProfile`, `removeProfile` and `changeCurrentProfile` (configuration, keybindings, global state and user extensions move to the profile's files, the extension host restarts, workbench/extension_host_restart.rs) in workbench/user_data_profile.rs; the configuration layers of a profile (`ApplicationConfiguration`, PROFILE_SCOPES, `workbench.settings.applyToAllProfiles`) with configurationService.test.ts's Profiles suite (cargo test -p config profile_tests); the settings, keybindings, tasks, snippets, globalState and extensions resources and the `.code-profile` template of userDataProfileImportExportService.ts as app/src/profile_template.rs (cargo test -p app profile_template); a template's extensions install the way extensionsResource.ts `apply` does, one publisher trust dialog for all of them and an error naming the ones that failed (cargo test -p app template_extensions_ask_for_publisher_trust_once); per-profile extensions.json (cargo test -p exthost extension_management); `createTroubleshootProfile` is removed with contrib/issue, its only caller (issueTroubleshoot.ts); profile templates from `profileTemplatesUrl` have no source, the product.json has none |
| workbench/services/userDataSync | workbench service | | removed | | no sign-in/AI by decision (port/notes.md); not ported |
| workbench/services/utilityProcess | workbench service | | verified | | no utility process workers: the file watcher worker, the one kept client, is files/src/watcher.rs on an FSEvents thread (platform/files; api-tests `vscode API - workspace-watcher` passes in the milestone 20 whole-suite run); localTranscription is AI, removed (port/notes.md milestone 20) |
-| workbench/services/views | workbench service | M11 | ported | [3 S] activity_bar_menu.rs:113: an activity item's or tab's context menu lacks Configure Keybinding, Hide/Keep '{name}' and Show/Hide Badge above Move To (compositeBarActions.ts `showContextMenu`; ui-pair contributed-panes.json "item-menu"), and a panel or secondary side bar tab's menu lacks its bar's own actions (panelPart.ts `fillExtraContextMenuActions`); [3 S] panel.rs:189: a composite dropped on another bar goes to that bar's end, not the drop index (compositeBar.ts `getTargetIndex`), one dropped on its own bar does not reorder (`moveComposite`), and the moved container opens without focus (`openComposite(id, true)`; ui-pair contributed-panes.json "moved": the reference puts Port Panes before Terminal and focuses its first pane); [3 S] activity_bar_menu.rs:153: an activity item drags as its title, the reference as its icon; [3 S] side_bar.rs:62: the compact activity bar's tabs have no item menu and no drag; [3 S] view_panes.rs:535: a collapsed pane of a container in the panel draws expanded, the reference as a narrow strip (ui-pair contributed-panes.json "moved", Third); [3 S] panel.rs:553: after a composite drop the tab under the pointer shows its hover, the reference none (contributed-panes.json "moved"); [3 S] view_locations.rs:225: the Extensions and Testing containers do not move (`can_move_container`) | view containers of `viewsContainers.activitybar` and `viewsContainers.panel` and the tree views of every container (workbench/view_containers.rs): activity bar items while a view's `when` holds, `workbench.view.extension.<id>` with its "View: Show <title>" Command Palette item while `viewContainer.<id>.enabled` (cargo test -p app an_extension_container_is_shown), a panel container's tab after the built-in ones, its views as side-by-side panes under its "..." and "View: Toggle <title>" (cargo test -p app an_extension_panel_container_is_a_panel_tab), each contributed view's "<container>: Focus on <view> View" palette item (ui-pair port/fixtures/ui-pair/contributed-panes.json "palette" and "panel" match the reference but its Ports tab, removed by decision), `<view id>.focus`, `<view id>.active`, merged single views, view_panes.rs panes for the views of an extension container and of Testing (`PaneContainer::Contributed`: cargo test -p app view_containers::; ui-pair port/fixtures/ui-pair/contributed-panes.json with port/fixtures/extensions/contributed-panes, the Port Panes and Testing side bars as the reference), treeView.ts `noDataProviderMessage` (cargo test -p app tree_view::), contributed views of scm and debug as panes of those containers; the Explorer's ViewDescriptorsState (view_panes.rs); ui-pair port/results/references-view.md; `visibility` (`hidden` views stay out until the Views submenu of the Explorer's "..." shows them, `collapsed`; workbench/view_visibility.rs: cargo test -p app view_visibility); the Explorer container's ViewDescriptorsState (view_panes.rs); moving views (workbench/view_locations.rs, verified): `views.customizations` viewLocations and generated containers `workbench.views.service.<location>.<uuid>` with their activity bar items and panel tabs, View: Move View, Move Focused View, Reset Focused View Location, a view header dropped on another container's pane (at its position), on the activity bar or on a panel's title (a new entry), `focusedView`; the folder view, Open Editors, Outline, Timeline, Source Control's Changes, Search, the debug views and the panel's views move into any built-in container or a new entry and back, the moved view opens focused, the picker lists only visible views, a moved view's hidden state is in its current container's state (cargo test -p app a_moved_view_is_hidden); an activity item's and a tab's context menu with Move To (the other locations) and Reset Location away from the default location or for a lone view at home (paneCompositeBar.ts `getContextMenuActionsForComposite`: cargo test -p app the_explorer_item_menu), an activity item dragged onto the panel or secondary side bar and a tab dropped on the activity bar (compositeBar.ts `CompositeDragAndDrop.drop`: cargo test -p app the_explorer_item_drags; ui-pair contributed-panes.json "moved": Port Panes moves into the panel and opens in both); cargo test -p app (2594 passed); ui-pair port/fixtures/ui-pair/m11/move-view.json, port/results/move-view.md (8 steps match, Ports removed by decision); verified: ui-pair port/results/references-view.md (milestone 11 verification) |
+| workbench/services/views | workbench service | M11 | ported | [3 S] activity_bar_menu.rs:113: an activity item's or tab's context menu lacks Configure Keybinding, Hide/Keep '{name}' and Show/Hide Badge above Move To (compositeBarActions.ts `showContextMenu`; ui-pair contributed-panes.json "item-menu"), and a panel or secondary side bar tab's menu lacks its bar's own actions (panelPart.ts `fillExtraContextMenuActions`); [3 S] panel.rs:189: a composite dropped on another bar goes to that bar's end, not the drop index (compositeBar.ts `getTargetIndex`), one dropped on its own bar does not reorder (`moveComposite`), and the moved container opens without focus (`openComposite(id, true)`; ui-pair contributed-panes.json "moved": the reference puts Port Panes before Terminal and focuses its first pane); [3 S] activity_bar_menu.rs:153: an activity item drags as its title, the reference as its icon; [3 S] side_bar.rs:62: the compact activity bar's tabs have no item menu and no drag; [3 S] view_panes.rs:535: a collapsed pane of a container in the panel draws expanded, the reference as a narrow strip (ui-pair contributed-panes.json "moved", Third); [3 S] panel.rs:553: after a composite drop the tab under the pointer shows its hover, the reference none (contributed-panes.json "moved"); [3 S] keyboard.rs:597: the Extensions views' key context (`inputBoxFocus`, `listFocus`) applies only while they are in the side bar, not in a panel; [3 S] panel.rs:780: a panel or secondary side bar tab of a moved Extensions or Testing container draws no badge (the extensions count, the test results) | view containers of `viewsContainers.activitybar` and `viewsContainers.panel` and the tree views of every container (workbench/view_containers.rs): activity bar items while a view's `when` holds, `workbench.view.extension.<id>` with its "View: Show <title>" Command Palette item while `viewContainer.<id>.enabled` (cargo test -p app an_extension_container_is_shown), a panel container's tab after the built-in ones, its views as side-by-side panes under its "..." and "View: Toggle <title>" (cargo test -p app an_extension_panel_container_is_a_panel_tab), each contributed view's "<container>: Focus on <view> View" palette item (ui-pair port/fixtures/ui-pair/contributed-panes.json "palette" and "panel" match the reference but its Ports tab, removed by decision), `<view id>.focus`, `<view id>.active`, merged single views, view_panes.rs panes for the views of an extension container and of Testing (`PaneContainer::Contributed`: cargo test -p app view_containers::; ui-pair port/fixtures/ui-pair/contributed-panes.json with port/fixtures/extensions/contributed-panes, the Port Panes and Testing side bars as the reference), treeView.ts `noDataProviderMessage` (cargo test -p app tree_view::), contributed views of scm and debug as panes of those containers; the Explorer's ViewDescriptorsState (view_panes.rs); ui-pair port/results/references-view.md; `visibility` (`hidden` views stay out until the Views submenu of the Explorer's "..." shows them, `collapsed`; workbench/view_visibility.rs: cargo test -p app view_visibility); the Explorer container's ViewDescriptorsState (view_panes.rs); moving views (workbench/view_locations.rs, verified): `views.customizations` viewLocations and generated containers `workbench.views.service.<location>.<uuid>` with their activity bar items and panel tabs, View: Move View, Move Focused View, Reset Focused View Location, a view header dropped on another container's pane (at its position), on the activity bar or on a panel's title (a new entry), `focusedView`; the folder view, Open Editors, Outline, Timeline, Source Control's Changes, Search, the debug views and the panel's views move into any built-in container or a new entry and back, the moved view opens focused, the picker lists only visible views, a moved view's hidden state is in its current container's state (cargo test -p app a_moved_view_is_hidden); an activity item's and a tab's context menu with Move To (the other locations) and Reset Location away from the default location or for a lone view at home (paneCompositeBar.ts `getContextMenuActionsForComposite`: cargo test -p app the_explorer_item_menu), an activity item dragged onto the panel or secondary side bar and a tab dropped on the activity bar (compositeBar.ts `CompositeDragAndDrop.drop`: cargo test -p app the_explorer_item_drags; ui-pair contributed-panes.json "moved": Port Panes moves into the panel and opens in both), the Extensions and Testing containers move to the panel and the secondary side bar and back with their views and open commands (cargo test -p app the_extensions_and_testing_containers; ui-pair contributed-panes.json "extensions-moved" and "testing-moved": both items dragged onto the panel open there as in the reference); cargo test -p app (2594 passed); ui-pair port/fixtures/ui-pair/m11/move-view.json, port/results/move-view.md (8 steps match, Ports removed by decision); verified: ui-pair port/results/references-view.md (milestone 11 verification) |
| workbench/services/workingCopy | workbench service | M8 | verified | | the text file and untitled working copies are the editor models (dirty state, save, revert, the window's edited dot of `onDidChangeDirty`): cargo test -p app untitled (30), lifecycle (3); WorkingCopyFileService create, move, copy, delete with participants: cargo test -p files operations (12); WorkingCopyHistoryService and its tracker for saves into User/History, entries following renames and folder moves (`moveEntries`): cargo test -p app local_history (10); WorkingCopyBackupService and the backup tracker with hot exit (backups.rs, workbench/backup_tracker.rs), a backup of a deleted file restoring as an orphaned model (`doResolveFromBackup`), modified scratchpads backing up: cargo test -p app backup (19); the working copies of editable custom documents (MainThreadCustomEditorModel, workbench/custom_documents.rs: `$onDidEdit` edits for undo and redo with `$disposeEdits`, `$onContentChange`, dirty tabs, `$onSave`, Save As with `$onSaveAs` and the editor moved to the target, `$revert`, `$backup` into a `vscode-custom-editor` backup restored with its backup id): cargo test -p app custom_documents (3), and port/fixtures/extensions/custom-document-tests (FIXTURE=custom-document-tests port/tools/webview-check: 4/4 in the reference and 4/4 in the port). Notebook working copies are the contrib/notebook row's; their backups are typed (`hashIdentifier` with a type id, backups.rs: cargo test -p app backups::, the upstream typed hashes) and the shutdown joins backups still being written |
| workbench/services/workspaces | workbench service | M12 | ported | [3 L] workspace_editing.rs:243, :379: enterWorkspace reopens the window where upstream switches in place (L); the Remove Folder picker has no ROOT_FOLDER icons (S) | workspace_trust.rs: WorkspaceTrustManagementService (uriTrustInfo in shared storage, longest trusted parent, empty window memento, parent folder trust) and WorkspaceTrustRequestService: cargo test -p app workspace_trust; workbench/workspace_editing.rs: abstractWorkspaceEditingService.ts addFolders, removeFolders, updateFolders, saveAndEnterWorkspace, enterWorkspace (shortcut in port/notes.md: the window reopens in place), duplicate workspace: cargo test -p app folders_added_and_removed_in_a_workspace_reach_its_file_the_explorer_settings_and_host workspace_editing; ui-pair port/fixtures/ui-pair/m12/workspace-folders.json, verified at port-m12b-verify |
| workbench/contrib/accessibility | workbench contribution | M19 | verified | | workbench/accessible_view.rs and workbench/accessibility.rs: accessible view and accessibility help (Alt+F2, Alt+F1 with the editor, hover, view help providers, the hover's and a workbench hover's accessible view, Escape from the latter focusing the hover again, a focused contributed tree or webview view's `accessibilityHelpContent`, a webview view the `focusedView` while its webview has the keyboard; Alt+F6, Alt+H, Alt+K, Alt+A, Alt+]/[), notification aria labels with the verbosity hint, unfocused editor dimming, Toggle Screen Reader Accessibility Mode, status entry; cargo test -p app accessib (alt_f1_shows_the_editor_help..., alt_f1_in_a_contributed_view..., alt_f1_in_a_webview_view..., dimming), cargo test -p app content_hover (the hover's accessible view), port/tools/a11y-check reads the help text area (port/notes.md milestone 19) |