()
| 43 | } |
| 44 | |
| 45 | function getTransportMethods() { |
| 46 | return [ |
| 47 | { |
| 48 | value: "stdio", |
| 49 | text: |
| 50 | strings["lsp-transport-method-stdio"] || |
| 51 | "STDIO (launch a binary command)", |
| 52 | }, |
| 53 | { |
| 54 | value: "websocket", |
| 55 | text: |
| 56 | strings["lsp-transport-method-websocket"] || |
| 57 | "WebSocket (connect to a ws/wss URL)", |
| 58 | }, |
| 59 | ]; |
| 60 | } |
| 61 | |
| 62 | function parseWebSocketUrl(value) { |
| 63 | const normalized = String(value || "").trim(); |