@@ -336,7 +336,7 @@ export const { use: useSync, provider: SyncProvider } = createSimpleContext({
336336
337337 case "lsp.updated" : {
338338 const workspace = project . workspace . current ( )
339- sdk . client . lsp . status ( { workspace } ) . then ( ( x ) => setStore ( "lsp" , x . data ! ) )
339+ sdk . client . lsp . status ( { workspace } ) . then ( ( x ) => setStore ( "lsp" , x . data ?? [ ] ) )
340340 break
341341 }
342342
@@ -419,14 +419,14 @@ export const { use: useSync, provider: SyncProvider } = createSimpleContext({
419419 ...( args . continue ? [ ] : [ sessionListPromise . then ( ( sessions ) => setStore ( "session" , reconcile ( sessions ) ) ) ] ) ,
420420 consoleStatePromise . then ( ( consoleState ) => setStore ( "console_state" , reconcile ( consoleState ) ) ) ,
421421 sdk . client . command . list ( { workspace } ) . then ( ( x ) => setStore ( "command" , reconcile ( x . data ?? [ ] ) ) ) ,
422- sdk . client . lsp . status ( { workspace } ) . then ( ( x ) => setStore ( "lsp" , reconcile ( x . data ! ) ) ) ,
423- sdk . client . mcp . status ( { workspace } ) . then ( ( x ) => setStore ( "mcp" , reconcile ( x . data ! ) ) ) ,
422+ sdk . client . lsp . status ( { workspace } ) . then ( ( x ) => setStore ( "lsp" , reconcile ( x . data ?? [ ] ) ) ) ,
423+ sdk . client . mcp . status ( { workspace } ) . then ( ( x ) => setStore ( "mcp" , reconcile ( x . data ?? { } ) ) ) ,
424424 sdk . client . experimental . resource
425425 . list ( { workspace } )
426426 . then ( ( x ) => setStore ( "mcp_resource" , reconcile ( x . data ?? { } ) ) ) ,
427- sdk . client . formatter . status ( { workspace } ) . then ( ( x ) => setStore ( "formatter" , reconcile ( x . data ! ) ) ) ,
427+ sdk . client . formatter . status ( { workspace } ) . then ( ( x ) => setStore ( "formatter" , reconcile ( x . data ?? [ ] ) ) ) ,
428428 sdk . client . session . status ( { workspace } ) . then ( ( x ) => {
429- setStore ( "session_status" , reconcile ( x . data ! ) )
429+ setStore ( "session_status" , reconcile ( x . data ?? { } ) )
430430 } ) ,
431431 sdk . client . provider . auth ( { workspace } ) . then ( ( x ) => setStore ( "provider_auth" , reconcile ( x . data ?? { } ) ) ) ,
432432 sdk . client . vcs . get ( { workspace } ) . then ( ( x ) => setStore ( "vcs" , reconcile ( x . data ) ) ) ,
0 commit comments