neovim/runtime
Mathias Fußenegger e5e0bda41b
feat(lsp)!: add vim.lsp.status, client.progress and promote LspProgressUpdate (#23958)
`client.messages` could grow unbounded because the default handler only
added new messages, never removing them.

A user either had to consume the messages by calling
`vim.lsp.util.get_progress_messages` or by manually removing them from
`client.messages.progress`. If they didn't do that, using LSP
effectively leaked memory.

To fix this, this deprecates the `messages` property and instead adds a
`progress` ring buffer that only keeps at most 50 messages. In addition
it deprecates `vim.lsp.util.get_progress_messages` in favour of a new
`vim.lsp.status()` and also promotes the `LspProgressUpdate` user
autocmd to a regular autocmd to allow users to pattern match on the
progress kind.

Also closes https://github.com/neovim/neovim/pull/20327
2023-06-09 11:32:43 +02:00
..
autoload vim-patch:b7398fe41c9e (#23627) 2023-05-15 09:38:32 +02: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 feat(lsp)!: add vim.lsp.status, client.progress and promote LspProgressUpdate (#23958) 2023-06-09 11:32:43 +02:00
ftplugin refactor(defaults): do not use C specific default values for options (#22500) 2023-06-06 11:26:29 -05:00
indent vim-patch:9.0.1580: CI: indent test hangs on FreeBSD (#23768) 2023-05-26 22:13:42 +08:00
keymap
lua feat(lsp)!: add vim.lsp.status, client.progress and promote LspProgressUpdate (#23958) 2023-06-09 11:32:43 +02:00
macros
pack/dist/opt refactor(options): deprecate nvim[_buf|_win]_[gs]et_option 2023-05-21 15:14:01 +06:00
plugin vim-patch:b7398fe41c9e (#23627) 2023-05-15 09:38:32 +02:00
queries fix(treesitter): update highlights for query (#23699) 2023-05-21 19:22:28 +02:00
spell
syntax vim-patch:b7398fe41c9e (#23627) 2023-05-15 09:38:32 +02:00
tools
tutor docs(tutor): fix TODO line demo (#21965) 2023-01-25 09:46:00 +08: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
filetype.lua
ftoff.vim
ftplugin.vim fix(ftplugin): source Lua files after Vimscript files per directory (#23801) 2023-05-28 15:13:44 +02:00
ftplugof.vim
indent.vim
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
nvim.appdata.xml NVIM v0.9.0 2023-04-07 13:26:29 +02:00
nvim.desktop
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