vscode-html-end-tag-labels
vscode-html-end-tag-labels copied to clipboard
Add javascript parser
Describe the bug This extension should not be working on JavaScript files. I wrote a simple for loop and it displays right below it.
To Reproduce This is the for loop that I wrote.
for (let i = 0; i < colors.length; i++) {
console.log(colors[i]);
}
/.length
Expected behavior
The /.length
should not be displayed in JavaScript files.
Screenshots
Desktop (please complete the following information):
- OS: macOS
- VSCode Version: 1.53.0
- Extension Version: 0.6.0
I'm getting the same. The extension seems to be kicking in when it sees a '<'. Possibly interpreting it as the start of a html tag.
Thank you for reporting this issue. I will disable the extension in js files because initially it was added because of JSX support, but currently, we only have an HTML parser and parsing JS code with an HTML parser won't give us desired result.
Tagging this issue as Stale.
any update on this?
Hi, I have the same issue with .ty Typescript Files - which are similar to js files mostly...
@sksundram @mike-shields-dev @iDad5, I've introduced basic support for JSX and React. Please, try it and let me know how it feels.