Visual Studio Code, rebuilt in Rust
Rust
build(windows): mark the Unix-only launch and scan code items
rokartur5124b9fe5618
diff --git a/native/crates/app/src/keybindings.rs b/native/crates/app/src/keybindings.rsindex 437c1d08cb4..938de0acb78 100644--- a/native/crates/app/src/keybindings.rs+++ b/native/crates/app/src/keybindings.rs@@ -271,6 +271,7 @@ const NUMPAD_0: usize = 98;const NUMPAD_DIVIDE: usize = 113;/// The scan code of the key's US position, as `SCAN_CODES` names it (`keya`, `arrowup`).+#[cfg_attr(windows, expect(dead_code, reason = "shortcut: unused until the Windows system-wide keybindings land, port/ledger.md M24 row app/src/system_wide_keybindings.rs:13"))]pub fn us_scan_code(key: usize) -> Option<&'static str> {SCAN_CODES.iter().find(|(_, scan_key)| *scan_key == key).map(|(name, _)| *name)}diff --git a/native/crates/app/src/launch.rs b/native/crates/app/src/launch.rsindex 433cf2fa7bf..8d9e34bf04e 100644--- a/native/crates/app/src/launch.rs+++ b/native/crates/app/src/launch.rs@@ -18,6 +18,7 @@ use serde_json::{Value, json};/// What a second instance sends: its command line, working directory and whether a terminal's `code` started it/// (`isLaunchedFromCli` of its `userEnv`), or a `--status` request answered with the/// main process diagnostics (main.ts asks the `diagnostics` channel of the same socket).+#[cfg_attr(windows, expect(dead_code, reason = "shortcut: built only by the Unix socket until the named pipe lands, port/ledger.md M24 row app/src/launch.rs:5"))]pub enum Launch {Open { args: Vec<String>, cwd: PathBuf, launched_from_cli: bool },Status(futures::channel::oneshot::Sender<crate::diagnostics::MainDiagnostics>),