add support for lsp workspace/didChangeConfiguration (#2334)
This commit is contained in:
@@ -60,7 +60,7 @@ export namespace LSPClient {
|
|||||||
return null
|
return null
|
||||||
})
|
})
|
||||||
connection.onRequest("workspace/configuration", async () => {
|
connection.onRequest("workspace/configuration", async () => {
|
||||||
return [{}]
|
return [input.server.initialization ?? {}]
|
||||||
})
|
})
|
||||||
connection.listen()
|
connection.listen()
|
||||||
|
|
||||||
@@ -109,6 +109,12 @@ export namespace LSPClient {
|
|||||||
|
|
||||||
await connection.sendNotification("initialized", {})
|
await connection.sendNotification("initialized", {})
|
||||||
|
|
||||||
|
if (input.server.initialization) {
|
||||||
|
await connection.sendNotification("workspace/didChangeConfiguration", {
|
||||||
|
settings: input.server.initialization,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
const files: {
|
const files: {
|
||||||
[path: string]: number
|
[path: string]: number
|
||||||
} = {}
|
} = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user