From 15d8f7a22e7add8d6bc7bad9cd687130f0e81e8b Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Fri, 21 Feb 2025 11:25:58 +0800 Subject: [PATCH] feat(readme): add important notice for WSL users regarding network mode for Monaco Editor --- README.md | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d650d7d..a4fff82 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,23 @@ +## ⚠️ Important Notice for WSL Users! + +If you're using Windows Subsystem for Linux (WSL), it's **crucial** to switch your network mode to "Mirrored". + +Otherwise, the Monaco Editor might fail to connect to the LSP language servers. + +This is typically due to IPv6 configuration issues. + +To change your WSL network mode, follow these steps: + +1. Open WSL settings. ⚙️ +2. Navigate to the "Network" section. 🌐 +3. Change the network mode to "Mirrored". 🔄 +4. Restart WSL. 💻 + +After completing these steps, the Monaco Editor should be able to connect to the LSP language servers without any problems. 🎉 + ## 🚀 Quick Start ### 🐳 Using Docker (Recommended) @@ -42,11 +59,7 @@ bun run dev ### LSP Server Settings -
- | **Language** | **LSP Server** | **Port** | |----------------|------------------|------------| | `C` | `clangd` | `4594` | | `C++` | `clangd` | `4595` | - -