aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/buf.lua
diff options
context:
space:
mode:
authorEvgeni Chasnovski <evgeni.chasnovski@gmail.com>2025-02-06 10:33:15 +0200
committerLewis Russell <me@lewisr.dev>2025-02-07 22:10:59 +0000
commita9cdf76e3a142c78b2b5da58c428e15e31cb0a15 (patch)
treeb372dafe93b5858405fd0bd92fed2dd3797873b4 /runtime/lua/vim/lsp/buf.lua
parentad853d1df093f30d0ca083a0c3a2935496533e8e (diff)
downloadrneovim-a9cdf76e3a142c78b2b5da58c428e15e31cb0a15.tar.gz
rneovim-a9cdf76e3a142c78b2b5da58c428e15e31cb0a15.tar.bz2
rneovim-a9cdf76e3a142c78b2b5da58c428e15e31cb0a15.zip
fix(lsp): check for valid buf before processing semantic tokens response
Problem: There is no check for buffer validity before processing semantic tokens response. This can lead to `Invalid buffer id` error if processing request takes a long time and the buffer is wiped out. For example, this can happen after by accident navigating to a buffer from different project which leads to first loading project's workspace and *then* processing semantic tokens. During that time a buffer can be wiped out, as navigation to it was by accident. Solution: Add extra check for buffer validity before processing semantic tokens response.
Diffstat (limited to 'runtime/lua/vim/lsp/buf.lua')
0 files changed, 0 insertions, 0 deletions