|
|
@@ -336,7 +336,7 @@ export const { use: useSync, provider: SyncProvider } = createSimpleContext({
|
|
|
|
|
|
case "lsp.updated": {
|
|
|
const workspace = project.workspace.current()
|
|
|
- sdk.client.lsp.status({ workspace }).then((x) => setStore("lsp", x.data!))
|
|
|
+ sdk.client.lsp.status({ workspace }).then((x) => setStore("lsp", x.data ?? []))
|
|
|
break
|
|
|
}
|
|
|
|
|
|
@@ -419,14 +419,14 @@ export const { use: useSync, provider: SyncProvider } = createSimpleContext({
|
|
|
...(args.continue ? [] : [sessionListPromise.then((sessions) => setStore("session", reconcile(sessions)))]),
|
|
|
consoleStatePromise.then((consoleState) => setStore("console_state", reconcile(consoleState))),
|
|
|
sdk.client.command.list({ workspace }).then((x) => setStore("command", reconcile(x.data ?? []))),
|
|
|
- sdk.client.lsp.status({ workspace }).then((x) => setStore("lsp", reconcile(x.data!))),
|
|
|
- sdk.client.mcp.status({ workspace }).then((x) => setStore("mcp", reconcile(x.data!))),
|
|
|
+ sdk.client.lsp.status({ workspace }).then((x) => setStore("lsp", reconcile(x.data ?? []))),
|
|
|
+ sdk.client.mcp.status({ workspace }).then((x) => setStore("mcp", reconcile(x.data ?? {}))),
|
|
|
sdk.client.experimental.resource
|
|
|
.list({ workspace })
|
|
|
.then((x) => setStore("mcp_resource", reconcile(x.data ?? {}))),
|
|
|
- sdk.client.formatter.status({ workspace }).then((x) => setStore("formatter", reconcile(x.data!))),
|
|
|
+ sdk.client.formatter.status({ workspace }).then((x) => setStore("formatter", reconcile(x.data ?? []))),
|
|
|
sdk.client.session.status({ workspace }).then((x) => {
|
|
|
- setStore("session_status", reconcile(x.data!))
|
|
|
+ setStore("session_status", reconcile(x.data ?? {}))
|
|
|
}),
|
|
|
sdk.client.provider.auth({ workspace }).then((x) => setStore("provider_auth", reconcile(x.data ?? {}))),
|
|
|
sdk.client.vcs.get({ workspace }).then((x) => setStore("vcs", reconcile(x.data))),
|