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
I’m not sure if this is actually an issue, so I wanted to ask here first.
When I open a .vue file, the commentstring is always set to <-- %s --> no matter which section I’m in (<style>, <script setup>, or template).
This only updates to the correct commentstring (like /* %s */ in <style>) after I make any kind of change in the file (for example, just inserting a new line).
It seems like a buffer change in any section triggers an update that corrects the commentstring for that section.
What I’d expect is for the correct commentstring to be used right away when opening the file, without needing to make any changes first.
Indeed, I often open a .vue file just to comment out something, and it's annoying to have to make some stupid change in the file just to trigger the right commenstring.
I have all the relevant Tree-sitter parsers installed: vue, typescript, css, and html.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello there,
I’m not sure if this is actually an issue, so I wanted to ask here first.
When I open a .vue file, the commentstring is always set to <-- %s --> no matter which section I’m in (<style>, <script setup>, or template).
This only updates to the correct commentstring (like /* %s */ in <style>) after I make any kind of change in the file (for example, just inserting a new line).
It seems like a buffer change in any section triggers an update that corrects the commentstring for that section.
What I’d expect is for the correct commentstring to be used right away when opening the file, without needing to make any changes first.
Indeed, I often open a .vue file just to comment out something, and it's annoying to have to make some stupid change in the file just to trigger the right commenstring.
I have all the relevant Tree-sitter parsers installed: vue, typescript, css, and html.
Any help would be appreciated — thanks!
Beta Was this translation helpful? Give feedback.
All reactions