We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug
html-language-features
1.0.0
Linux x64 5.15.0-46-generic
1.70.2
{ "messages": [], "activationTimes": { "codeLoadingTime": 16, "activateCallTime": 5, "activateResolvedTime": 360, "activationReason": { "startup": false, "extensionId": { "value": "vscode.html-language-features", "_lower": "vscode.html-language-features" }, "activationEvent": "onLanguage:html" } }, "runtimeErrors": [], "runningLocation": { "affinity": 0, "kind": 1 } }
When using this html code:
<script type="module">let a = 0;</script> <script type="module">let a = 0;</script>
Problems tab reads: Cannot redeclare block-scoped variable 'a'.
Cannot redeclare block-scoped variable 'a'.
Since I'm using module scripts the two variables live in isolated scopes.
However, the error message is valid for classic scripts:
<script>let a = 0;</script> <script>let a = 0;</script>
The same issue arises when mixing both script types:
<script type="module">let a = 0;</script> <script>let a = 0;</script>
The text was updated successfully, but these errors were encountered:
@johnnygerard Is there a reason you marked this as completed? It still happens for me in vscode and it seems like a pretty clear bug. I do notice an equivalent bug, still open, in the vscode repo itself.
Sorry, something went wrong.
@davepeck I should have kept it open for others, my bad.
Successfully merging a pull request may close this issue.
Bug
html-language-features
1.0.0
Linux x64 5.15.0-46-generic
1.70.2
When using this html code:
Problems tab reads:
Cannot redeclare block-scoped variable 'a'.
Since I'm using module scripts the two variables live in isolated scopes.
However, the error message is valid for classic scripts:
The same issue arises when mixing both script types:
The text was updated successfully, but these errors were encountered: