mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 12:45:17 -07:00
Merge 4541189052
into 3db3947b0e
This commit is contained in:
commit
4f00e6bf9b
@ -193,6 +193,9 @@ RSC[ms.workspace_configuration] = function(_, params, ctx)
|
||||
value = vim.NIL
|
||||
end
|
||||
table.insert(response, value)
|
||||
else
|
||||
-- If no section is provided, return settings as is
|
||||
table.insert(response, client.settings)
|
||||
end
|
||||
end
|
||||
return response
|
||||
|
@ -150,9 +150,16 @@ function tests.check_workspace_configuration()
|
||||
{ section = 'testSetting2' },
|
||||
{ section = 'test.Setting3' },
|
||||
{ section = 'test.Setting4' },
|
||||
{},
|
||||
{ section = '' },
|
||||
},
|
||||
})
|
||||
expect_notification('workspace/configuration', { true, false, 'nested', vim.NIL })
|
||||
local all = {
|
||||
testSetting1 = true,
|
||||
testSetting2 = false,
|
||||
test = { Setting3 = 'nested' },
|
||||
}
|
||||
expect_notification('workspace/configuration', { true, false, 'nested', vim.NIL, all, all })
|
||||
notify('shutdown')
|
||||
end,
|
||||
}
|
||||
|
@ -677,6 +677,8 @@ describe('LSP', function()
|
||||
{ section = 'testSetting2' },
|
||||
{ section = 'test.Setting3' },
|
||||
{ section = 'test.Setting4' },
|
||||
{},
|
||||
{ section = '' },
|
||||
},
|
||||
},
|
||||
{ method = 'workspace/configuration', client_id = 1 },
|
||||
|
Loading…
Reference in New Issue
Block a user