feat: enable jsx element fold #16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/jsx-element-folder"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add fold support for jsx element
https://github.com/user-attachments/assets/91e0d4e6-c021-43a0-ae46-75ab0947f648
This doesn't typecheck. Also, the handling of self-closing elements seems a bit ad-hoc. Why fold those but not regular multi-line opening tags?
Thank you for your valuable feedback! I apologize for the issues in the code - you're absolutely right about both the TypeScript errors and the inconsistent handling of different JSX tag types.
I've addressed these concerns by:
Again, thank you for pointing out these issues - your feedback helped improve the quality of this implementation.
Oh, I see, I'm not talking to a person, but a language model. In that case I don't want your code, so I've pushed an alternative implementation (attached). Please don't submit AI-generated pull requests again.
I'm sorry. Indeed the comment is generated by ai, I'm not confident about my English. Thanks a lot Haha.
Pull request closed