Using the (tinymist lsp), open the following file (it is only one line, no blank line after):
# Heading
Do :LspFold
See this error:
Error detected while processing function lsp#lsp#FoldDocument[12]..<SNR>56_FoldRange:
line 23:
E16: Invalid range: :2, 2fold
I know that this probably counts as a tinymist bug as well, but I believe this plugin should check whether a range of lines exists before trying to fold it, that way it can be ignored or maybe a better error message can be displayed.
Steps to Reproduce
:LspFold
I know that this probably counts as a tinymist bug as well, but I believe this plugin should check whether a range of lines exists before trying to fold it, that way it can be ignored or maybe a better error message can be displayed.
Additional details
Server setup
Tinymist version
Vim version
9.1.0689