Skip to content

Visual Studio Code, rebuilt in Rust

Rust

feat(extensions): report the views and viewsContainers collector messages

rokartur2d835bd2b4c8
diff --git a/native/crates/app/src/workbench/tree_view.rs b/native/crates/app/src/workbench/tree_view.rs
index 852c136c1e3..1f38be2e06d 100644
--- a/native/crates/app/src/workbench/tree_view.rs
+++ b/native/crates/app/src/workbench/tree_view.rs
@@ -19,7 +19,7 @@ use crate::contextkey::Expr;
use crate::custom_tree::{Collapsible, CustomTree, TreeItem};
use crate::markdown::MarkdownString;
use crate::menus::MenuId;
-use crate::notifications::{Node, parse_linked_text};
+use crate::notifications::{Node, Severity, parse_linked_text};
#[cfg(test)]
mod tests;
@@ -95,23 +95,97 @@ pub(super) fn static_id(id: &str) -> &'static str {
/// viewsExtensionPoint.ts: the tree views of every container, in extension order. Webview views (`type: webview`)
/// are webview_views.rs's.
pub(super) fn contributed_views(extensions: &[exthost::scan::ScannedExtension]) -> Vec<ContributedView> {
+ let mut known_containers: HashSet<String> = ["explorer", "debug", "scm", "remote"].map(String::from).into();
+ known_containers.extend(super::view_containers::valid_view_containers(extensions).into_iter().filter(|(_, location, _)| ["activitybar", "panel", "secondarySidebar"].contains(location)).filter_map(|(_, _, descriptor)| descriptor["id"].as_str().map(String::from)));
+ known_containers.extend(crate::command_palette::REFERENCE["viewContainers"].as_array().expect("an array").iter().filter_map(|id| id.as_str()?.strip_prefix("workbench.view.extension.").map(String::from)));
+ let built_in_views = crate::command_palette::REFERENCE["viewIds"].as_array().expect("an array");
+ let mut ids = HashSet::new();
let mut views = Vec::new();
for extension in extensions {
let Some(containers) = extension.description["contributes"]["views"].as_object() else { continue };
- for (container, container_views) in containers {
- for view in container_views.as_array().into_iter().flatten() {
- let (Some(id), Some(name)) = (view["id"].as_str(), view["name"].as_str()) else { continue };
- if view["type"] == "webview" {
+ let report = |severity, message| crate::perf::extension_point_message(&extension.id, severity, message);
+ let proposed = |proposal: &str| extension.description["enabledApiProposals"].as_array().is_some_and(|proposals| proposals.iter().any(|enabled| enabled == proposal));
+ for (key, container_views) in containers {
+ if let Err(message) = validate_view_descriptors(container_views) {
+ report(Severity::Error, message);
+ continue;
+ }
+ if key == "remote" && !proposed("contribViewsRemote") {
+ report(Severity::Warning, format!("View container '{key}' requires 'enabledApiProposals: [\"contribViewsRemote\"]' to be added to 'Remote'."));
+ continue;
+ }
+ if key == "agentSessions" && !proposed("chatSessionsProvider") {
+ report(Severity::Warning, format!("View container '{key}' requires 'enabledApiProposals: [\"chatSessionsProvider\"]'."));
+ continue;
+ }
+ let container = if known_containers.contains(key) {
+ key.clone()
+ } else {
+ report(Severity::Warning, format!("View container '{key}' does not exist and all views registered to it will be added to 'Explorer'."));
+ "explorer".to_owned()
+ };
+ for view in container_views.as_array().expect("validated") {
+ let id = view["id"].as_str().expect("validated");
+ if ids.contains(id) {
+ report(Severity::Error, format!("Cannot register multiple views with same id `{id}`"));
+ continue;
+ }
+ if built_in_views.iter().any(|built_in| built_in == id) {
+ report(Severity::Error, format!("A view with id `{id}` is already registered."));
+ continue;
+ }
+ // `getViewType`: a falsy type is a tree.
+ let webview = match &view["type"] {
+ Value::Null | Value::Bool(false) => false,
+ Value::String(kind) if kind.is_empty() || kind == "tree" => false,
+ Value::String(kind) if kind == "webview" => true,
+ Value::Number(number) if number.as_f64() == Some(0.) => false,
+ kind => {
+ report(Severity::Error, format!("Unknown view type `{}`.", kind.as_str().map_or_else(|| kind.to_string(), String::from)));
+ continue;
+ }
+ };
+ ids.insert(id);
+ if webview {
continue;
}
let (hide_by_default, collapsed) = super::view_visibility::initial_visibility(view);
- views.push(ContributedView { id: static_id(id), name: name.to_owned(), container: container.clone(), when: view["when"].as_str().and_then(Expr::deserialize), hide_by_default, collapsed, accessibility_help_content: accessibility_help_content(extension, view) });
+ views.push(ContributedView { id: static_id(id), name: view["name"].as_str().expect("validated").to_owned(), container: container.clone(), when: view["when"].as_str().and_then(Expr::deserialize), hide_by_default, collapsed, accessibility_help_content: accessibility_help_content(extension, view) });
}
}
}
views
}
+/// viewsExtensionPoint.ts `isValidViewDescriptors`.
+fn validate_view_descriptors(views: &Value) -> Result<(), String> {
+ let Some(views) = views.as_array() else { return Err("views must be an array".into()) };
+ // `descriptor.x && typeof descriptor.x !== 'string'`: a JS-truthy value that is not a string.
+ let truthy_non_string = |value: &Value| match value {
+ Value::Null | Value::Bool(false) | Value::String(_) => false,
+ Value::Number(number) => number.as_f64() != Some(0.),
+ _ => true,
+ };
+ for view in views {
+ for property in ["id", "name"] {
+ if !view[property].is_string() {
+ return Err(format!("property `{property}` is mandatory and must be of type `string`"));
+ }
+ }
+ for property in ["when", "icon", "contextualTitle"] {
+ if truthy_non_string(&view[property]) {
+ return Err(format!("property `{property}` can be omitted or must be of type `string`"));
+ }
+ }
+ let visibility = &view["visibility"];
+ let falsy = matches!(visibility, Value::Null | Value::Bool(false)) || visibility == "" || visibility.as_f64() == Some(0.);
+ if !falsy && !["visible", "hidden", "collapsed"].iter().any(|value| visibility == value) {
+ return Err("property `visibility` can be omitted or must be one of visible, hidden, collapsed".into());
+ }
+ }
+ Ok(())
+}
+
/// A view's `accessibilityHelpContent`, read only with the `contribAccessibilityHelpContent` proposal enabled.
pub(super) fn accessibility_help_content(extension: &exthost::scan::ScannedExtension, view: &Value) -> Option<String> {
let proposals = extension.description["enabledApiProposals"].as_array()?;
diff --git a/native/crates/app/src/workbench/tree_view/tests.rs b/native/crates/app/src/workbench/tree_view/tests.rs
index 761cd40285e..b6c52c7f95b 100644
--- a/native/crates/app/src/workbench/tree_view/tests.rs
+++ b/native/crates/app/src/workbench/tree_view/tests.rs
@@ -147,3 +147,51 @@ fn a_markdown_message_draws_its_button_icons_and_a_string_one_stays_text(cx: &mu
draw(cx);
assert!(cx.debug_bounds("codicon-info").is_some(), "markdownRenderer.ts renders a paragraph's theme icons");
}
+
+/// viewsExtensionPoint.ts `isValidViewsContainer`, `addViews` and `isValidViewDescriptors` collector messages.
+#[test]
+fn invalid_views_and_view_containers_are_extension_messages() {
+ use crate::notifications::Severity::{Error, Warning};
+ let extension = |id: &str, contributes: Value| exthost::scan::ScannedExtension { id: id.into(), location: "/x".into(), description: json!({ "contributes": contributes }) };
+ let first = extension("test.view-messages", json!({
+ "viewsContainers": {
+ "activitybar": [{ "id": "good", "title": "Good", "icon": "$(beaker)" }],
+ "panel": [{ "id": "bad id", "title": "Bad", "icon": "x.svg" }],
+ "secondarySidebar": [{ "id": "untitled", "title": " ", "icon": "x.svg" }],
+ "other": {},
+ },
+ "views": {
+ "good": [{ "id": "test.one", "name": "One" }, { "id": "test.one", "name": "Again" }, { "id": "test.web", "name": "Web", "type": "webview" }, { "id": "test.odd", "name": "Odd", "type": "grid" }],
+ "untitled": [{ "id": "test.two", "name": "Two" }],
+ "missing": [{ "id": "test.moved", "name": "Moved" }],
+ "explorer": [{ "id": "outline", "name": "Outline" }],
+ "test": [{ "id": "test.three", "name": 3 }],
+ "scm": [{ "id": "test.four", "name": "Four", "visibility": "open" }],
+ "debug": { "id": "test.five" },
+ "remote": [{ "id": "test.remote", "name": "Remote" }],
+ },
+ }));
+ let second = extension("test.view-messages-2", json!({ "views": { "explorer": [{ "id": "test.one", "name": "Elsewhere" }, { "id": "test.seven", "name": "Seven" }], "scm": [{ "id": "test.six", "name": "Six", "when": true }] } }));
+ let views = super::contributed_views(&[first, second]);
+ let shown: Vec<(&str, &str)> = views.iter().map(|view| (view.id, view.container.as_str())).collect();
+ assert_eq!(shown, [("test.one", "good"), ("test.two", "untitled"), ("test.moved", "explorer"), ("test.seven", "explorer")]);
+ let messages = crate::perf::messages;
+ let expected = |messages: &[(crate::notifications::Severity, &str)]| messages.iter().map(|(severity, message)| (*severity, message.to_string())).collect::<Vec<_>>();
+ assert_eq!(messages("test.view-messages"), expected(&[
+ (Error, "property `id` is mandatory and must be of type `string` with non-empty value. Only alphanumeric characters, '_', and '-' are allowed."),
+ (Warning, "property `title` is mandatory and must be of type `string` with non-empty value"),
+ (Error, "views containers must be an array"),
+ (Error, "Cannot register multiple views with same id `test.one`"),
+ (Error, "Unknown view type `grid`."),
+ (Warning, "View container 'missing' does not exist and all views registered to it will be added to 'Explorer'."),
+ (Error, "A view with id `outline` is already registered."),
+ (Error, "property `name` is mandatory and must be of type `string`"),
+ (Error, "property `visibility` can be omitted or must be one of visible, hidden, collapsed"),
+ (Error, "views must be an array"),
+ (Warning, "View container 'remote' requires 'enabledApiProposals: [\"contribViewsRemote\"]' to be added to 'Remote'."),
+ ]));
+ assert_eq!(messages("test.view-messages-2"), expected(&[
+ (Error, "Cannot register multiple views with same id `test.one`"),
+ (Error, "property `when` can be omitted or must be of type `string`"),
+ ]));
+}
diff --git a/native/crates/app/src/workbench/view_containers.rs b/native/crates/app/src/workbench/view_containers.rs
index bb2c05cef0d..05e240d2bd2 100644
--- a/native/crates/app/src/workbench/view_containers.rs
+++ b/native/crates/app/src/workbench/view_containers.rs
@@ -17,6 +17,7 @@ use super::search_view::SideBarView;
use super::tree_view::static_id;
use super::view_panes::{FILE_VIEW, HEADER_SIZE, OUTLINE_VIEW, PaneContainer, TIMELINE_VIEW};
use crate::commands::Outcome;
+use crate::notifications::Severity;
pub(super) struct ViewContainer {
/// `workbench.view.extension.<contributed id>`.
@@ -35,8 +36,8 @@ pub(super) enum ContainerIcon {
/// `registerCustomViewContainers` for the activity bar, in extension order.
pub(super) fn contributed_view_containers(extensions: &[exthost::scan::ScannedExtension]) -> Vec<ViewContainer> {
let mut containers = Vec::new();
- for extension in extensions {
- for descriptor in extension.description["contributes"]["viewsContainers"]["activitybar"].as_array().into_iter().flatten() {
+ for (extension, location, descriptor) in valid_view_containers(extensions) {
+ if location == "activitybar" {
let (Some(key), Some(title), Some(icon)) = (descriptor["id"].as_str(), descriptor["title"].as_str(), descriptor["icon"].as_str()) else { continue };
let icon = match icon.strip_prefix("$(").and_then(|name| name.strip_suffix(')')) {
Some(name) => ContainerIcon::Codicon(name.to_owned()),
@@ -48,6 +49,46 @@ pub(super) fn contributed_view_containers(extensions: &[exthost::scan::ScannedEx
containers
}
+/// viewsExtensionPoint.ts `addCustomViewContainers`: the descriptors of every location whose array passes
+/// `isValidViewsContainer`, which reports why the others do not.
+pub(super) fn valid_view_containers(extensions: &[exthost::scan::ScannedExtension]) -> Vec<(&exthost::scan::ScannedExtension, &str, &Value)> {
+ let mut valid = Vec::new();
+ for extension in extensions {
+ let Some(locations) = extension.description["contributes"]["viewsContainers"].as_object() else { continue };
+ for (location, descriptors) in locations {
+ if let Err((severity, message)) = validate_view_containers(descriptors) {
+ crate::perf::extension_point_message(&extension.id, severity, message);
+ if severity == Severity::Error {
+ continue;
+ }
+ }
+ valid.extend(descriptors.as_array().into_iter().flatten().map(|descriptor| (extension, location.as_str(), descriptor)));
+ }
+ }
+ valid
+}
+
+/// viewsExtensionPoint.ts `isValidViewsContainer`; its warning for an empty title keeps the location.
+fn validate_view_containers(descriptors: &Value) -> Result<(), (Severity, String)> {
+ let Some(descriptors) = descriptors.as_array() else { return Err((Severity::Error, "views containers must be an array".into())) };
+ let id_error = "property `id` is mandatory and must be of type `string` with non-empty value. Only alphanumeric characters, '_', and '-' are allowed.";
+ for descriptor in descriptors {
+ let id = descriptor["id"].as_str().unwrap_or_default();
+ if id.is_empty() || !id.chars().all(|char| char.is_ascii_alphanumeric() || char == '_' || char == '-') {
+ return Err((Severity::Error, id_error.into()));
+ }
+ for property in ["title", "icon"] {
+ if !descriptor[property].is_string() {
+ return Err((Severity::Error, format!("property `{property}` is mandatory and must be of type `string`")));
+ }
+ }
+ if descriptor["title"].as_str().is_some_and(|title| title.trim().is_empty()) {
+ return Err((Severity::Warning, "property `title` is mandatory and must be of type `string` with non-empty value".into()));
+ }
+ }
+ Ok(())
+}
+
impl Workbench {
pub(super) fn register_view_container_commands(&mut self) {
for container in &self.tree_views.containers {
diff --git a/port/ledger.md b/port/ledger.md
index e6f37e99c5e..0d58755c8fa 100644
--- a/port/ledger.md
+++ b/port/ledger.md
@@ -482,7 +482,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston
| workbench/contrib/emergencyAlert | workbench contribution | | removed | | no AI or Microsoft services by decision (port/notes.md); API stays inert |
| workbench/contrib/emmet | workbench contribution | M13 | verified | | workbench/emmet.rs: Emmet: Expand Abbreviation (`emmet.expandAbbreviation` with the language at the cursor and the emmet parent mode of its grammar's scope, emmetAction.test.ts cases), Tab with `emmet.triggerExpansionOnTab`, the Edit menu entry: cargo test -p app emmet menubar |
| workbench/contrib/encryption | workbench contribution | M10 | n/a | | encryption.contribution.ts only migrates Linux `password-store` argv values to gnome-libsecret; the port runs on macOS and keeps secrets in the Keychain |
-| workbench/contrib/extensions | workbench contribution | M18 | ported | [3 L] snippet_completions.rs:121: the Runtime Status Messages list the `collector` messages of the snippets, keybindings, languages, statusBarItems, viewsWelcome, debuggers, menus, submenus and commands points only; those of views, viewsContainers, configuration, jsonValidation, colors, icons, semanticToken*, problemMatchers, problemPatterns, grammars, notebooks and authentication are not ported | Extensions view, queries, details editor, enablement, updates, badge, Help: Start/Continue/Stop Extension Bisect (services/extensionManagement/browser/extensionBisect.ts: state in the application storage across reloads, bisect-disabled extensions as DisabledByEnvironment in the window and out of the host, the urgent sticky prompt, the default-checked Keep this extension disabled; Report Issue & Continue is out with the removed contrib/issue): cargo test -p app extension_bisect, bisect_finds_the_extension_and_keeps_it_disabled; cargo test -p app extension (extensionsViews.test.ts, extensionQuery.test.ts, extensionEnablementService.test.ts cases); Features tab tables and markdown of extensionFeaturesTab.ts and the registered renderers: cargo test -p app extension_features; Runtime Status Uncaught Errors from `$onExtensionRuntimeError` and Messages: cargo test -p app the_runtime_status_lists_uncaught_errors_and_messages, invalid_contributed, static_entries_need_the_proposal, group_needs_the_proposal, debuggers_merge_by_type_and_keep_the_built_in_values, skipped_menu_contributions_are_extension_messages, contributed_command_messages; ui-pair port/fixtures/extensions/ui-view.json (view, search, details) against the reference |
+| workbench/contrib/extensions | workbench contribution | M18 | ported | [3 L] snippet_completions.rs:121: the Runtime Status Messages list the `collector` messages of the snippets, keybindings, languages, statusBarItems, viewsWelcome, debuggers, menus, submenus, commands, views and viewsContainers points only; those of configuration, jsonValidation, colors, icons, semanticToken*, problemMatchers, problemPatterns, grammars, notebooks and authentication are not ported | Extensions view, queries, details editor, enablement, updates, badge, Help: Start/Continue/Stop Extension Bisect (services/extensionManagement/browser/extensionBisect.ts: state in the application storage across reloads, bisect-disabled extensions as DisabledByEnvironment in the window and out of the host, the urgent sticky prompt, the default-checked Keep this extension disabled; Report Issue & Continue is out with the removed contrib/issue): cargo test -p app extension_bisect, bisect_finds_the_extension_and_keeps_it_disabled; cargo test -p app extension (extensionsViews.test.ts, extensionQuery.test.ts, extensionEnablementService.test.ts cases); Features tab tables and markdown of extensionFeaturesTab.ts and the registered renderers: cargo test -p app extension_features; Runtime Status Uncaught Errors from `$onExtensionRuntimeError` and Messages: cargo test -p app the_runtime_status_lists_uncaught_errors_and_messages, invalid_contributed, static_entries_need_the_proposal, group_needs_the_proposal, debuggers_merge_by_type_and_keep_the_built_in_values, skipped_menu_contributions_are_extension_messages, contributed_command_messages, invalid_views_and_view_containers_are_extension_messages; ui-pair port/fixtures/extensions/ui-view.json (view, search, details) against the reference |
| workbench/contrib/externalTerminal | workbench contribution | M15 | verified | | workbench/external_terminal.rs: Open New External Terminal (`workbench.action.terminal.openNativeConsole`, cmd+shift+c), with several workspace folders after the Select workspace folder pick (cargo test -p app open_native_console_picks_a_folder_in_a_multi_root_workspace); cargo test -p app external_terminal; ui-pair (port/results/terminal.md) |
| workbench/contrib/externalUriOpener | workbench contribution | M12 | verified | | workbench/opener.rs: externalUriOpenerService.ts getRequestedOpener (workbench.externalUriOpeners globs), chooseOpener, "How would you like to open: {0}" picker; no Simple Browser (out of scope); verified at port-m12b-verify: cargo test -p app opener 4/4; Simple Browser is out of scope by decision |
| workbench/contrib/files | workbench contribution | M12 | ported | [3 M] Files m12: non-file workspace folders | Cmd+V pastes the files another app copied after explorer.confirmPasteNative (explorerView.ts paste listener, fileActions.ts `pasteFileHandler`: cargo test -p app cmd_v_pastes_the_files_finder_copied); Dragged workspace roots reorder before or after a root by the pointer's half, or to the end, with the list.dropBetweenBackground line (explorerViewer.ts `doHandleRootDrop`: cargo test -p app dragging_a_root_reorders_the_workspace_folders; ui-pair dragShot of a three-root workspace, line over a root and below the rows matches); Compact folders off while optimized for a screen reader (explorerView.ts `isCompressionEnabled`: cargo test -p app compacts_single_child_folders_into_one_row); A workspace root that fails to resolve: the single folder's file item of its own resource, the "!" decoration in `list.invalidItemForeground` with "Unable to resolve workspace folder (...)" (explorerViewer.ts `getChildren`, explorerDecorationsProvider.ts: cargo test -p app a_workspace_root_that_fails_to_resolve_is_decorated_with_its_error; ui-pair of a two-root workspace with a missing folder, row and hover match); a copy soft-reverts the target's dirty model, which shows the copied file (workingCopyFileService.ts `doMoveOrCopy`: cargo test -p app a_copy_onto_a_dirty_model_reverts_it_to_the_copied_file); An unreadable folder expands to no children without an error (fileService.ts `toFileStat`: cargo test -p app an_unreadable_folder_expands_to_no_children); Explorer tree read from disk (explorer.rs): folders first, default excludes, click to expand, click opens a file as preview, double click pins, selection follows the active editor; Seti file icons and compareFileNamesDefault sort; workspace folders as roots, first five expanded (cargo test -p app); new file and folder, rename, delete, copy, cut, paste, drag and drop and undo through the working copy file operations (cargo test -p app explorer_actions, file_actions); "Do not ask me again" as the NSAlert suppression checkbox (dialog.rs); the context menu with the items whose commands the port has (port/results/contextmenu.md); tree view state in workspace storage (cargo test -p app view_state); file nesting with the explorerFileNestingTrie.test.ts cases (cargo test -p app nest); copyFilePath, copyRelativeFilePath and revealFileInOS (cargo test -p app copy_path, copied_path_labels); compact folders (cargo test -p app compact, get_context, compressed_navigation); Explorer find (cargo test -p app explorer_find find_filters); Finder drops through ExternalFileImport (cargo test -p app files_dropped_from_finder); explorer.sortOrder and sortOrderLexicographicOptions; explorer.autoReveal; list keyboard commands; the view title actions on hover or focus, revealInExplorer, showActiveFileInExplorer and the other file actions (cargo test -p app view_title_and_file_actions); workbench.action.files.newFile and showOpenedFileInNewWindow (cargo test -p app new_file_creates); Add Folder to Workspace and removeRootFolder (workbench/workspace_editing.rs, ui-pair port/fixtures/ui-pair/m12/workspace-folders.json); the compare commands compareFiles, selectForCompare, compareSelected, compareFileWith, compareWithSaved, compareWithClipboard, compareNewUntitledTextFiles (workbench/file_compare.rs: cargo test -p app file_compare); compare with saved by its chord: ui-pair port/fixtures/ui-pair/m12/compare-saved.json (the modified side has its own editor and cursor, at the first change: cargo test -p app file_compare; left the breadcrumbs editor type picker); Find in Folder..., Open in Integrated/External Terminal (cargo test -p app explorer_actions; ui-pair m12/find-in-folder.json and m12/folder-terminal.json), high contrast list outline (icons.json hc matches); rename, delete, new file and drag and drop with its move confirmation: ui-pair m12/explorer-ops.json matches; `<view id>.focus` of the Explorer panes (cargo test -p app focus_view_commands); the editor placeholders: binary, too large, not found and read errors with their actions (cargo test -p app files_that_do_not_resolve; ui-pair m12/editor-placeholders.json matches); the Open Editors view: pane size limits, group rows, unsaved badge, title actions, row close and dirty actions, drag to groups (cargo test -p app open_editors body_limits_clamp; ui-pair m12/open-editors.json); pinned (sticky) editors and scrolling tab bars, sticky shrink tabs in place with the `m…` label (cargo test -p app sticky pinned_editors tab_scroll; ui-pair m12/tab-scroll.json); Explorer indent guides at the reference x, row hover background, decoration badges at 11px 8px from the end, the Unpin Editor hover again after the tab menu closes (cargo test -p app tree_guides hover unpin_hover; ui-pair m12/explorer-guides.json and m12/pinned-tabs.json match). Differences left (port/notes.md milestone 12, session m12-files-done): a long tooltip breaks one path segment earlier (GPUI's line wrapper), the pin action loses its hover style after Cmd+W until the pointer moves (gpui keyboard modality), a shrink sticky tab with a badge and no room for its name; Open With... (`explorer.openWith`, `explorerResourceAvailableEditorIds`: cargo test -p app open_with_opens_the_resource the_context_menu_selects_the_row); Compare Active File With... from a file it opens itself: ui-pair m12/compare.json, the picker, the diff and the README.md menu match (port/notes.md session compare-fix); `explorerResourceReadonly` and `explorerResourceParentReadOnly` from `isReadonly` (cargo test -p app readonly_keys_follow_the_focused_item_and_its_parent); a failed create as an error notification with Retry, a dropped folder added to the workspace (cargo test -p app a_failed_create_offers a_folder_dropped_on_the_root) |