mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -07:00
Compare commits
2 Commits
4f00e6bf9b
...
a4272b926d
Author | SHA1 | Date | |
---|---|---|---|
|
a4272b926d | ||
|
4541189052 |
@ -193,6 +193,9 @@ RSC[ms.workspace_configuration] = function(_, params, ctx)
|
|||||||
value = vim.NIL
|
value = vim.NIL
|
||||||
end
|
end
|
||||||
table.insert(response, value)
|
table.insert(response, value)
|
||||||
|
else
|
||||||
|
-- If no section is provided, return settings as is
|
||||||
|
table.insert(response, client.settings)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return response
|
return response
|
||||||
|
@ -150,9 +150,16 @@ function tests.check_workspace_configuration()
|
|||||||
{ section = 'testSetting2' },
|
{ section = 'testSetting2' },
|
||||||
{ section = 'test.Setting3' },
|
{ section = 'test.Setting3' },
|
||||||
{ section = 'test.Setting4' },
|
{ 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')
|
notify('shutdown')
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
@ -677,6 +677,8 @@ describe('LSP', function()
|
|||||||
{ section = 'testSetting2' },
|
{ section = 'testSetting2' },
|
||||||
{ section = 'test.Setting3' },
|
{ section = 'test.Setting3' },
|
||||||
{ section = 'test.Setting4' },
|
{ section = 'test.Setting4' },
|
||||||
|
{},
|
||||||
|
{ section = '' },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{ method = 'workspace/configuration', client_id = 1 },
|
{ method = 'workspace/configuration', client_id = 1 },
|
||||||
|
Loading…
Reference in New Issue
Block a user