Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

docs: Fix WSL action name in remote development guide (#61073)

kai-xlrbadd2157d6a5
diff --git a/crates/zed_actions/src/lib.rs b/crates/zed_actions/src/lib.rs
index 13ea37d6612..d7f4074cd9f 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<String>,
}
-#[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 768e2d2d7df..a3e9420724c 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