neovim/runtime
github-actions[bot] 00889948dd
fix(lsp): avoid attaching to unloaded buffers (#16726)
Closes https://github.com/neovim/neovim/issues/16562 https://github.com/neovim/neovim/issues/16249 https://github.com/neovim/neovim/issues/16297

* buf_attach_client can be called on an unloaded buffer
* on_attach will prematurely fail, while the language server client
  tracks this buffer as attached
* The language server client will track this buffer as attached despite
  textDocument/didChange notifications not being sent to the server
* Instead, check if the buffer is loaded and return early, warning via
  the lsp logger that buf_attach_client was called on an invalid buffer

(cherry picked from commit 6d63cb8f6a)

Co-authored-by: Michael Lingelbach <m.j.lbach@gmail.com>
2021-12-19 13:24:08 -08:00
..
autoload vim-patch:8.2.3703: most people call F# "fsharp" and not "fs" (#16469) 2021-11-30 14:51:17 +01:00
colors vim-patch:4f4d51a942cc 2021-05-01 14:22:52 -04:00
compiler vim-patch:6c391a74fe90 (#15654) 2021-09-13 16:33:41 +02:00
doc fix(diagnostic): respect "if_many" source option for virtual text (#16697) 2021-12-17 19:44:16 -07:00
ftplugin vim-patch:6304be625ce4 (#16450) 2021-11-27 19:39:42 +01:00
indent vim-patch:partial 113cb513f76d (#16260) 2021-11-08 00:10:44 +01:00
keymap vim-patch:6c391a74fe90 (#15654) 2021-09-13 16:33:41 +02:00
lua fix(lsp): avoid attaching to unloaded buffers (#16726) 2021-12-19 13:24:08 -08:00
macros vim-patch:4072ba571bab 2021-05-01 22:29:03 -04:00
pack/dist/opt vim-patch:6304be625ce4 (#16450) 2021-11-27 19:39:42 +01:00
plugin vim-patch:519cc559b08b (#16340) 2021-11-17 10:02:59 +01:00
print
queries/c
spell vim-patch:8.2.0038: spell suggestions insufficiently tested 2021-06-12 13:06:49 -04:00
syntax vim-patch:6304be625ce4 (#16450) 2021-11-27 19:39:42 +01:00
tools vim-patch:6304be625ce4 (#16450) 2021-11-27 19:39:42 +01:00
tutor fix(tutor): formatting, layout #15098 2021-08-30 05:27:35 -07:00
bugreport.vim
CMakeLists.txt vim-patch:8.2.3676: unused runtime file (#16441) 2021-11-26 17:16:11 +01:00
delmenu.vim vim-patch:8.1.2416: loading menus sets v:errmsg 2021-04-11 17:05:42 -04:00
filetype.vim vim-patch:8.2.3703: most people call F# "fsharp" and not "fs" (#16469) 2021-11-30 14:51:17 +01:00
ftoff.vim
ftplugin.vim feat(runtime): Allow lua to be used in ftplugin 2021-06-11 01:01:02 +06:00
ftplugof.vim
indent.vim feat(runtime): Allow lua to be used in indent 2021-06-11 01:01:02 +06:00
indoff.vim
macmap.vim
makemenu.vim vim-patch:95a9dd1efc5a 2021-04-27 09:21:32 -04:00
menu.vim vim-patch:65e0d77a66b7 2021-04-28 21:57:50 -04:00
mswin.vim
nvim.appdata.xml NVIM 0.6.0 2021-11-30 18:20:42 +01:00
nvim.desktop vim-patch:23515b4ef758 2021-05-01 22:29:03 -04:00
nvim.png
optwin.vim vim-patch:8.1.2019: 'cursorline' always highlights the whole line (#15161) 2021-07-30 21:51:26 -04:00
scripts.vim vim-patch:8.2.3686: filetype detection often mixes up Forth and F# 2021-11-27 19:21:57 +01:00
synmenu.vim vim-patch:4466ad6baa22 2021-05-01 22:29:02 -04:00