neovim/runtime
Sean Dewar cc87dda31a
fix(lsp): do not assume client capability exists in watchfiles check (#24550)
PR #23689 assumes `client.config.capabilities.workspace.didChangeWatchedFiles`
exists when checking `dynamicRegistration`, but thats's true only if it was
passed to `vim.lsp.start{_client}`.

This caused #23806 (still an issue in v0.9.1; needs manual backport), but #23681
fixed it by defaulting `config.capabilities` to `make_client_capabilities` if
not passed to `vim.lsp.start{_client}`.

However, the bug resurfaces on HEAD if you provide a non-nil `capabilities` to
`vim.lsp.start{_client}` with missing fields (e.g: not made via
`make_client_capabilities`).

From what I see, the spec says such missing fields should be interpreted as an
absence of the capability (including those indicated by missing sub-fields):
https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#clientCapabilities

Also, suggest `vim.empty_dict()` for an empty dict in
`:h vim.lsp.start_client()` (`{[vim.type_idx]=vim.types.dictionary}`
no longer works anyway, probably since the cjson switch).
2023-08-04 08:10:54 +02:00
..
autoload fix(clipboard): ignore exit caused by signal #23378 2023-07-16 04:15:30 -07:00
colors vim-patch:71badf9547e8 (#23285) 2023-04-23 15:22:55 +02:00
compiler vim-patch:86b4816766d9 (#21314) 2022-12-08 16:33:38 +01:00
doc fix(lsp): do not assume client capability exists in watchfiles check (#24550) 2023-08-04 08:10:54 +02:00
ftplugin vim-patch:10e8ff9b2607 (#23977) 2023-06-11 12:40:22 +01:00
indent vim-patch:9.0.1580: CI: indent test hangs on FreeBSD (#23768) 2023-05-26 22:13:42 +08:00
keymap
lua fix(lsp): do not assume client capability exists in watchfiles check (#24550) 2023-08-04 08:10:54 +02:00
macros
pack/dist/opt vim-patch:9.0.1671: Termdebug: error with more than 99 breakpoints (#24194) 2023-06-29 07:04:46 +08:00
plugin fix(gx): move to to _init_default_mappings #24420 2023-07-24 08:35:19 -07:00
queries build(deps): bump tree-sitter-c to v0.20.4 (#24495) 2023-07-27 12:45:08 +02:00
spell
syntax fix(editorconfig): highlight properties with dashes (#24407) 2023-07-27 14:39:05 +02:00
tools vim-patch:e80086446cc2 (#19848) 2022-08-20 10:04:55 +02:00
tutor fix(tutor): don't use concealed text in expected lines #24316 2023-07-11 10:09:44 -07:00
CMakeLists.txt refactor(build): move the last generator from scripts/ to src/nvim/generators 2023-04-21 16:46:35 +02:00
delmenu.vim vim-patch:9.0.0141: "delmenu" does not remove autocmmands (#19646) 2022-08-05 12:23:41 +02:00
filetype.lua fix(runtime): respect 'rtp' order for all runtime files (#24335) 2023-07-14 06:46:16 +08:00
ftoff.vim
ftplugin.vim fix(runtime): respect 'rtp' order for all runtime files (#24335) 2023-07-14 06:46:16 +08:00
ftplugof.vim
indent.vim fix(runtime): respect 'rtp' order for all runtime files (#24335) 2023-07-14 06:46:16 +08:00
indoff.vim
macmap.vim
makemenu.vim
menu.vim vim-patch:b7398fe41c9e (#23627) 2023-05-15 09:38:32 +02:00
mswin.vim feat(ex_cmds)!: remove :behave 2023-04-13 12:15:30 +02:00
neovim.ico feat(windows): show icon in terminal titlebar, taskbar #20607 2022-10-13 05:48:12 -07:00
nvim.appdata.xml NVIM v0.9.0 2023-04-07 13:26:29 +02:00
nvim.desktop build(nvim.desktop): central Kurdish translation #17065 2022-05-13 11:58:22 -07:00
nvim.png
optwin.vim vim-patch:9.0.0640: cannot scroll by screen line if a line wraps 2023-05-02 13:11:26 +02:00
synmenu.vim vim-patch:3c053a1a5ad2 (#20679) 2022-10-17 08:19:48 +02:00