summaryrefslogtreecommitdiff
path: root/server/src/method/workspace/didChangeConfiguration.lua
blob: 732d28dd72bb05ba30fa4d0766de71d0109dcfa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
local rpc = require 'rpc'

return function (lsp)
    local uri = lsp.workspace and lsp.workspace.uri
    -- 请求配置
    rpc:request('workspace/configuration', {
        items = {
            {
                scopeUri = uri,
                section = 'Lua',
            },
        },
    }, function (configs)
        lsp:onUpdateConfig(configs[1])
    end)
end