windows: Update documents about WSL (#37292)

张小白 created

Release Notes:

- N/A

Change summary

crates/cli/src/main.rs | 6 ++++--
crates/zed/src/main.rs | 6 ++++--
2 files changed, 8 insertions(+), 4 deletions(-)

Detailed changes

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

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>,