neovim/test/functional/treesitter
Guilherme Soares c4eb0b64bd
fix(treesitter): find buffer in multiple windows #28922
Problem:
1. When interacting with multiple :InspectTree and the source buffer
   windows there is a high chance of errors due to the window ids not
   being updated and validated.
2. Not all InspectTree windows were closed when the source buffer was
   closed.

Solution:
1. Update InspectTree window id on `CursorMoved` event and validate
   source buffer window id before trying to navigate to it.
2. Close all InspectTree windows
2024-05-27 04:20:03 -07:00
..
fold_spec.lua test: improve test conventions 2024-04-23 18:17:04 +02:00
highlight_spec.lua fix(treesitter): enforce lowercase language names (#28546) 2024-04-28 16:27:47 +02:00
inspect_tree_spec.lua fix(treesitter): find buffer in multiple windows #28922 2024-05-27 04:20:03 -07:00
language_spec.lua test: improve test conventions 2024-04-23 18:17:04 +02:00
node_spec.lua perf(treesitter): use child_containing_descendant() in has-ancestor? (#28512) 2024-05-16 16:57:58 +02:00
parser_spec.lua fix(treesitter): allow optional directive captures (#28664) 2024-05-14 09:14:43 -05:00
query_spec.lua perf(treesitter): use child_containing_descendant() in has-ancestor? (#28512) 2024-05-16 16:57:58 +02:00
utils_spec.lua test: improve test conventions 2024-04-23 18:17:04 +02:00