add support for lsp workspace/didChangeConfiguration (#2334)

pull/2336/head
Aiden Cline 2025-08-30 14:49:13 -05:00 committed by GitHub
parent d3bbaa141c
commit b4d95545e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 1 deletions

View File

@ -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
} = {}