Zed still crashes in certain situations when commenting yaml
Summary
This is probably related to #31380, which should have been fixed by #31603, but I discovered some other situations, where Zed crashes when inserting a comment # in yaml. This issue persists in v0.188.5.
Description
Example yaml file:
# lorem ipsum
lorem_ipsum:
When you insert a # in the empty line, Zed crashes.
/cc @maxbrunsfeld Maybe you want to have another look?
Zed Version and System Specs
Zed: v0.188.5 (Zed) OS: macOS 15.5.0 Memory: 16 GiB Architecture: aarch64
If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.
No response
I cannot reproduce with steps providing using the same Zed version as you (v0.188.5).
Do you have any extensions which might be shipping their own tree-sitter-yaml? (Docker compose, etc). If you uninstall extensions and restart can you reproduce?
If yes, can you provide more explicit steps to help trigger this behavior?
I can reproduce this. Thanks for the report.