We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0edc2ea commit b17d62eCopy full SHA for b17d62e
src/cm/lsp/serverRegistry.ts
@@ -154,8 +154,10 @@ function sanitizeDefinition(
154
throw new Error(`LSP server ${id} (stdio) requires a command`);
155
}
156
157
- if (kind === "websocket" && !transport.url) {
158
- throw new Error(`LSP server ${id} (websocket) requires a url`);
+ // Websocket transport requires a URL unless a bridge is configured for auto-port discovery
+ const hasBridge = definition.launcher?.bridge?.command;
159
+ if (kind === "websocket" && !transport.url && !hasBridge) {
160
+ throw new Error(`LSP server ${id} (websocket) requires a url or a launcher bridge`);
161
162
163
const transportOptions: Record<string, unknown> =
0 commit comments