Skip to content

Visual Studio Code, rebuilt in Rust

Rust

docs(port): note the Linux super-q key name under gpui-fast

rokartur95510e04710a
diff --git a/port/notes.md b/port/notes.md
index 1fe931e7b20..a3e77657845 100644
--- a/port/notes.md
+++ b/port/notes.md
@@ -1111,6 +1111,7 @@ Work the port does at another time than 1.147.0, accepted with a measured same r
- Forced API changes (the build had 11 errors in `app` and 18 more in its tests, 0 on Wu; now 0 and 0):
- Missing from gpui-fast, so the call sites fall back to plain paint, each with a `shortcut:` comment, until the patch is ported: `Window::paint_backdrop_blur` (Wu's own; `quick_input_view.rs` `frosted_glass` paints the tint without blur, `corner_lab.rs` too), `Window::layout_subpixel_x` and `TextStyleRefinement::strut_size` (189efc4c454; the `file_icons.rs` glyph at x 0, `icon_label.rs` without the 13px strut), `ListState::with_whole_pixel_item_heights` (40f47558cba; `settings_editor_view.rs`).
- `Menu::window_menu` (Wu's own) is gone: gpui-fast's gpui_macos makes only the menu titled "Window" the windows menu (zed's rule). `menubar.rs` `fix_up_app_kit_menus` sets the translated one with `setWindowsMenu` and lists the open windows with `addWindowsItem` (set after the menu is in the menu bar, AppKit lists only windows ordered in later), as tauri-apps/muda `set_as_windows_menu_for_nsapp` does (MIT/Apache-2.0); vendoring gpui_macos for a flag was the other choice. Checked with the German language pack (`--locale de`): "Fenster" holds AppKit's Minimize, Zoom and tiling items and the window, as "Window" does in English; without the change it held only the port's three items.
+ - Open, for the merge with M23: on Linux gpui-fast's `Keystroke::unparse(OperatingSystem::Linux)` writes the platform key as `super-q` where Wu wrote `cmd-q`, so `menubar::tests::native_menus_show_keybindings_as_key_equivalents_or_in_the_label` fails on Linux only; the test is unchanged.
- `chromium_baseline` (189efc4c454) is pure math: now a local function in `file_icons.rs`.
- `Window::paint_drop_shadows` lost Wu's `opaque_background` argument; the terminal passed `false`, which is what gpui-fast always does.
- `Keystroke::parse` and `KeyBinding::new` take `&'static str`, `Keystroke::unparse` an `OperatingSystem`: runtime strings go through `crate::parse_keystroke` (`parse_with_os` with `crate::host_os()`, Wu's `secondary-` rule) and the menu bar's key equivalents through `KeyBinding::load` with the `App`, so `native_menus` takes `cx`.