diff --git a/crates/zed_actions/src/lib.rs b/crates/zed_actions/src/lib.rs index 13ea37d661..d7f4074cd9 100644 --- a/crates/zed_actions/src/lib.rs +++ b/crates/zed_actions/src/lib.rs @@ -860,7 +860,8 @@ pub struct WslConnectionOptions { pub user: Option, } -#[cfg(target_os = "windows")] +// `debug_assertions` makes the actions visible for the docs preprocessor +#[cfg(any(debug_assertions, target_os = "windows"))] pub mod wsl_actions { use gpui::Action; use schemars::JsonSchema; diff --git a/docs/src/remote-development.md b/docs/src/remote-development.md index 768e2d2d7d..a3e9420724 100644 --- a/docs/src/remote-development.md +++ b/docs/src/remote-development.md @@ -111,11 +111,11 @@ Zed supports opening folders inside of WSL natively on Windows. ### Opening a local folder in WSL -To open a local folder inside a WSL container, use the `projects: open in wsl` action and select the folder you want to open. You will be presented with a list of available WSL distributions to open the folder in. +To open a local folder inside a WSL container, use the {#action projects::OpenFolderInWsl} action and select the folder you want to open. You will be presented with a list of available WSL distributions to open the folder in. ### Opening a folder already in WSL -To open a folder that's already located inside of a WSL container, use the `projects: open wsl` action and select the WSL distribution. The distribution will be added to the `Remote Projects` window where you will be able to open the folder. +To open a folder that's already located inside of a WSL container, use the {#action projects::OpenWsl} action and select the WSL distribution. The distribution will be added to the `Remote Projects` window where you will be able to open the folder. ## Port forwarding