Desktop: Sync LSP updates (#6305)
This commit is contained in:
parent
a4411c21b6
commit
82e5d6d458
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue