Desktop: Sync LSP updates (#6305)

pull/6324/head
Daniel Polito 2025-12-28 19:07:36 -03:00 committed by GitHub
parent a4411c21b6
commit 82e5d6d458
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 0 deletions

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
}
}
})