Skip to content

Visual Studio Code, rebuilt in Rust

Rust

docs(ledger): name what the Linux clipboard formats need

rokartur4d548c1706a5
diff --git a/native/crates/app/src/clipboard.rs b/native/crates/app/src/clipboard.rs
index 3b6a4c3a2a6..7b807dc2cfb 100644
--- a/native/crates/app/src/clipboard.rs
+++ b/native/crates/app/src/clipboard.rs
@@ -85,7 +85,7 @@ mod pasteboard {
}
}
-/// shortcut: the file list and HTML formats are not written or read on Linux yet (port/todo.md Linux gap): Explorer's
+/// shortcut: the file list and HTML formats are not written or read on Linux yet (port/ledger.md, M23 Linux): Explorer's
/// Copy and Paste of files does nothing there. The find text is macOS-only upstream too:
/// clipboardService.ts reads and writes it only `if (isMacintosh)`.
#[cfg(all(not(test), target_os = "linux"))]
diff --git a/port/ledger.md b/port/ledger.md
index 795d9d37b9e..4261455291f 100644
--- a/port/ledger.md
+++ b/port/ledger.md
@@ -44,7 +44,7 @@ Status: `open`, `in progress`, `waiting on Artur`, `later` (postponed), `done`,
| M23 Linux | app/src/webview/linux.rs:66 | done | [linux L] webviews through WebKitGTK: webview panels and views, editor insets, notebook outputs, extension details, release notes. | `FIXTURE=webview-tests port/tools/linux/smoke` on X11 (Xvfb): 10/10 ok; `cargo gc test -p app webview` on Linux: 19 passed |
| M23 Linux | app/src/webview/linux.rs:47 | open | [linux M] webviews in a Wayland session. Linux shows now: no webview under Wayland: GPUI has no X window there to hold the GTK window, so `supported()` is false and each webview surface stays empty. | |
| M23 Linux | exthost/src/main_thread_secret_state.rs:46 | done | [linux M] secrets in the Secret Service (libsecret). | `cargo test -p exthost secret` on Linux: `secrets_in_a_keyring` (oo7's file backend); a desktop Secret Service not run |
-| M23 Linux | app/src/clipboard.rs:97 | open | [linux M] clipboard file lists, HTML and other custom formats, the find text. Linux shows now: text only; the other formats read empty. | |
+| M23 Linux | app/src/clipboard.rs:97 | open | [linux M] clipboard file lists, HTML and other custom formats: Chromium offers each as its own MIME target (`code/file-list`, `text/html`) beside the text. Needs gpui_linux vendored, since GPUI's X11 selection owner and Wayland data source offer only text, images and `text/uri-list`, and a second owner would take CLIPBOARD from GPUI's. The find text needs nothing: clipboardService.ts reads and writes it only on macOS. Linux shows now: text only; the other formats read empty. | |
| M23 Linux | app/src/workbench/themes.rs:47 | done | [linux S] host color scheme and high contrast from the xdg-desktop-portal Settings. | GPUI's `window_appearance()`, which gpui_linux reads from the portal's `color-scheme`; high contrast stays off, as Chromium on Linux |
| M23 Linux | app/src/dialog.rs:63 | open | [linux M] native message box (GTK). Linux shows now: the custom workbench dialog. | |
| M23 Linux | app/src/system_wide_keybindings/linux.rs:171 | done | [linux M] system-wide keybindings through the xdg-desktop-portal GlobalShortcuts in a Wayland session. | `cargo gc test -p app system_wide` on Linux under Xvfb: 13 passed, `x11_grabs_fail_when_taken_and_report_presses` and `portal_binds_the_accelerators_and_reports_activations` (a fake portal on a private bus); GNOME's and KDE's portals not run |