mirror of
https://github.com/neovim/neovim.git
synced 2024-09-17 20:58:20 -04:00
Merge 4541189052
into a0d8c2b86e
This commit is contained in:
commit
02c7ca6fd4
@ -210,6 +210,9 @@ M[ms.workspace_configuration] = function(_, result, 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,
|
||||
}
|
||||
|
@ -591,6 +591,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