Closed nyanpasu64 closed 2 weeks ago
This should be fixed in 0.19.1 on the website. Please let me know if something is still broken here!
For some reason I installed the Arch AUR 0.19.1 based on the 0.19.1 Linux package, but it still self-reports as 0.19 in About and the bug isn't fixed?
Folding still fails on 0.19.2 on Linux, but with rust-analyzer this time. I can always fold and unfold the arrows, but the corresponding lines in the file don't get hidden.
Will take another look!
This should be fixed in 0.19.3! Please let me know if that's not the case!
Seems to work now.
Does this issue occur when all extensions are disabled?: (cannot test, "one level down" depends on semantic information from extensions like clangd)
Haystack Version: 0.19 VS Code Version: 1.90.0 Chromium: 122.0.6261.156 OS: {3 } (Arch Linux)
Steps to Reproduce:
v
arrow on the left of a block.The wrong region of code is folded, or none at all.
Here, when I try folding a comment on line 62 (first line shown 24), VS Code highlights the block starting at line (62-24+1 = 39), which ends at line 51. Then it folds all lines in the editor from 62 until (51+24-1 = 74) inclusive.
It appears the bug is that you're sending window-relative line numbers to the code which identifies a foldable block (which expects document-relative line numbers), then interpreting the document-relative block boundary returned as a window-relative range of lines to hide.
This may be the same bug as #14.
Similarly, renaming symbols (with F2) fails when in a subscope of a file, but only if one or more lines were truncated from the beginning of the file: