aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/treesitter/query.lua
diff options
context:
space:
mode:
authortris203 <admin@snappeh.com>2024-12-06 16:25:13 +0000
committerLewis Russell <me@lewisr.dev>2024-12-07 10:08:33 +0000
commitbdfba8598b41b891e1fcc8b96163f442baf509b4 (patch)
treed02fed5b888b34974c635051c6eba105a5d1ad18 /runtime/lua/vim/treesitter/query.lua
parentc2bf09ddff4994f901350dd02412087a8abfde0a (diff)
downloadrneovim-bdfba8598b41b891e1fcc8b96163f442baf509b4.tar.gz
rneovim-bdfba8598b41b891e1fcc8b96163f442baf509b4.tar.bz2
rneovim-bdfba8598b41b891e1fcc8b96163f442baf509b4.zip
fix(lsp): cancel pending requests before refreshing
Problem: Diagnostics and inlay hints can be expensive to calculate, and we shouldn't stack them as this can cause noticeable lag. Solution: Check for duplicate inflight requests and cancel them before issuing a new one. This ensures that only the latest request is processed, improving performance and preventing potential conflicts.
Diffstat (limited to 'runtime/lua/vim/treesitter/query.lua')
0 files changed, 0 insertions, 0 deletions