Desktop: Sync LSP updates (#6305)

This commit is contained in:
Daniel Polito 2025-12-28 19:07:36 -03:00 committed by GitHub
commit 82e5d6d458
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -361,6 +361,15 @@ function createGlobalSync() {
)
break
}
case "lsp.updated": {
const sdk = createOpencodeClient({
baseUrl: globalSDK.url,
directory,
throwOnError: true,
})
sdk.lsp.status().then((x) => setStore("lsp", x.data ?? []))
break
}
}
})