diff --git a/EDITOR_SETUP.md b/EDITOR_SETUP.md index 039659d..9a8b7e7 100644 --- a/EDITOR_SETUP.md +++ b/EDITOR_SETUP.md @@ -18,11 +18,15 @@ Install the [LSP4IJ](https://plugins.jetbrains.com/plugin/23257-lsp4ij) plugin, 1. **Settings → Languages & Frameworks → LSP → Language Servers → +** - Name: `iLSP Bicep` - - Server type: `WebSocket` - - URL: `wss://ilsp.i80.dk/bicep` + - Server type: `Command` (not WebSocket — see note below) + - Command: `python3` + - Arguments: `/Users/lrihni/Projects/iLSP/scripts/lsp_bridge.py wss://ilsp.i80.dk/bicep` + + > **Note**: LSP4IJ's WebSocket mode doesn't handle LSP Content-Length framing correctly, + > causing "starting..." to hang or "Stream closed" errors. Use `lsp_bridge.py` instead. 2. **Add a file-type mapping** under the new server entry: - - File type: `Bicep` (or pattern `*.bicep`) + - File pattern: `*.bicep;*.bicepparam` (include both Bicep file types) 3. **Disable Azure Toolkit Bicep completions** — this is critical if you have the Azure Toolkit plugin installed. Without this step, IDEA merges completions from