aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp.lua
diff options
context:
space:
mode:
authorMathias Fußenegger <mfussenegger@users.noreply.github.com>2020-10-25 19:27:11 +0100
committerGitHub <noreply@github.com>2020-10-25 14:27:11 -0400
commit7fef16e1d6c106af57039c0620d77db917b12078 (patch)
tree8247cbc9151bd31c6992704be694145a75bb43e8 /runtime/lua/vim/lsp.lua
parentc984a888b8249b9f0e92b2949f02b3816a5e6e3e (diff)
downloadrneovim-7fef16e1d6c106af57039c0620d77db917b12078.tar.gz
rneovim-7fef16e1d6c106af57039c0620d77db917b12078.tar.bz2
rneovim-7fef16e1d6c106af57039c0620d77db917b12078.zip
lsp: Store diagnostics for unloaded buffers (#13102)
To avoid loading buffers https://github.com/neovim/neovim/pull/12440 changed the logic to not process diagnostics for unloaded buffers. This is problematic for language servers where compile errors or build errors are reported via diagnostics. These errors may prevent the language server from providing all functions and it is difficult for users to debug it without having access to the errors. For example, with eclipse.jdt.ls there may be a problem with gradle (the build tool for java), it results in a diagnostics like this: org.gradle.toolingapi/build.gradle|1 col 1| Could not run build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-4.8.1-bin.zip'. This would be invisible to users unless the user happens to open the right file. In this case the user would actually never see the error, because the language server isn't attached to the build configuration files. This changes the behaviour to at least store the diagnostics. The other operations which are more expensive are still skipped.
Diffstat (limited to 'runtime/lua/vim/lsp.lua')
0 files changed, 0 insertions, 0 deletions