You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In JSX (AFAIK with React), if you want whitespaces before and after a text element to be rendered, you have to do something like this:
functiontest(){return(<>{' TEXT '}</>)}
For me, having only the text element strict range (without whitespaces) is very more useful for a code editor which uses tree-sitter to indent, fontify, etc...
If it is intended, it is a breaking change, as previous releases did not behave like that.
Hi,
This issue is very similar to this one.
It concerns the
jsx_text
node. The range of this node is too large as it also covers the white spaces and newlines around it.Here, how to reproduce the issue:
Thanks in advance for fixing it.
The text was updated successfully, but these errors were encountered: