diff options
| author | Adam Malczewski <[email protected]> | 2026-06-28 14:24:58 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-28 14:24:58 +0900 |
| commit | 841e776635d2a93371f302f0617e729626a69fe5 (patch) | |
| tree | c416925f6730a35f2560451ca7c6edaf41e8b1e4 /packages/transport-http/src | |
| parent | 71c635f7d8ee01a2b23d5ddfdfc4bff043980052 (diff) | |
| parent | 414080e271ea44df0a7affc154b62e39b51a11a0 (diff) | |
| download | dispatch-841e776635d2a93371f302f0617e729626a69fe5.tar.gz dispatch-841e776635d2a93371f302f0617e729626a69fe5.zip | |
Merge branch 'dev' into feature/workspace-star
Diffstat (limited to 'packages/transport-http/src')
| -rw-r--r-- | packages/transport-http/src/extension.ts | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/packages/transport-http/src/extension.ts b/packages/transport-http/src/extension.ts index 5bf16b3..cfb7166 100644 --- a/packages/transport-http/src/extension.ts +++ b/packages/transport-http/src/extension.ts @@ -11,6 +11,7 @@ import { credentialStoreHandle, heartbeatServiceHandle, lspServiceHandle, + type LspService, mcpServiceHandle, sessionOrchestratorHandle, systemPromptHandle, @@ -27,7 +28,6 @@ export const manifest: Manifest = { "conversation-store", "credential-store", "heartbeat", - "lsp", "mcp", "session-orchestrator", "throughput-store", @@ -96,7 +96,14 @@ export function createTransportHttpExtension(): Extension & { const throughputStore = host.getService(throughputStoreHandle); const warmService = host.getService(cacheWarmHandle); const compactionService = host.getService(compactionHandle); - const lspService = host.getService(lspServiceHandle); + // Optional: the `lsp` extension may be disabled (hot-fix). Wrapped because + // getService throws for an unregistered handle — degrades to no diagnostics. + let lspService: LspService | undefined; + try { + lspService = host.getService(lspServiceHandle); + } catch { + lspService = undefined; + } const mcpService = host.getService(mcpServiceHandle); const systemPromptService = host.getService(systemPromptHandle); const heartbeatService = host.getService(heartbeatServiceHandle); @@ -129,7 +136,7 @@ export function createTransportHttpExtension(): Extension & { throughputStore, warmService, compactionService, - lspService, + ...(lspService !== undefined ? { lspService } : {}), mcpService, systemPromptService, heartbeatService, |
