mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
add support for lsp workspace/didChangeConfiguration
This commit is contained in:
parent
dac821229e
commit
dadd2ff0ac
1 changed files with 7 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ export namespace LSPClient {
|
|||
return null
|
||||
})
|
||||
connection.onRequest("workspace/configuration", async () => {
|
||||
return [{}]
|
||||
return [input.server.initialization ?? {}]
|
||||
})
|
||||
connection.listen()
|
||||
|
||||
|
|
@ -109,6 +109,12 @@ export namespace LSPClient {
|
|||
|
||||
await connection.sendNotification("initialized", {})
|
||||
|
||||
if (input.server.initialization) {
|
||||
await connection.sendNotification("workspace/didChangeConfiguration", {
|
||||
settings: input.server.initialization,
|
||||
})
|
||||
}
|
||||
|
||||
const files: {
|
||||
[path: string]: number
|
||||
} = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue