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.

windows: Update documents about WSL (#37292)

张小白acff65ed3f70
diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rs
index 151e96e3cf6..d67843b4c93 100644
--- a/crates/cli/src/main.rs
+++ b/crates/cli/src/main.rs
@@ -84,13 +84,15 @@ struct Args {
/// Run zed in dev-server mode
#[arg(long)]
dev_server_token: Option<String>,
- /// The username and WSL distribution to use when opening paths. ,If not specified,
+ /// The username and WSL distribution to use when opening paths. If not specified,
/// Zed will attempt to open the paths directly.
///
/// The username is optional, and if not specified, the default user for the distribution
/// will be used.
///
- /// Example: `me@Ubuntu` or `Ubuntu` for default distribution.
+ /// Example: `me@Ubuntu` or `Ubuntu`.
+ ///
+ /// WARN: You should not fill in this field by hand.
#[arg(long, value_name = "USER@DISTRO")]
wsl: Option<String>,
/// Not supported in Zed CLI, only supported on Zed binary
diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rs
index d1d221fb37d..3a7baa1559d 100644
--- a/crates/zed/src/main.rs
+++ b/crates/zed/src/main.rs
@@ -1183,13 +1183,15 @@ struct Args {
#[arg(long, value_name = "DIR")]
user_data_dir: Option<String>,
- /// The username and WSL distribution to use when opening paths. ,If not specified,
+ /// The username and WSL distribution to use when opening paths. If not specified,
/// Zed will attempt to open the paths directly.
///
/// The username is optional, and if not specified, the default user for the distribution
/// will be used.
///
- /// Example: `me@Ubuntu` or `Ubuntu` for default distribution.
+ /// Example: `me@Ubuntu` or `Ubuntu`.
+ ///
+ /// WARN: You should not fill in this field by hand.
#[arg(long, value_name = "USER@DISTRO")]
wsl: Option<String>,