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 have found a bug related to commenting out part of html-files in an Angular project using the VSCode shortcut.
bug report
Is this a regression?
Not to my knowledge. I quick search of the issues did not show somehting similar.
Description
When I try to comment out part of an HTML file in an Angular project using the shortcut ctl+/, it adds JS style comment syntax (//) instead of html style comment syntax (<!-- -->).
Bug Type
What does this bug affect
Angular Language Service VSCode extension
Angular Language Service server
Reproduction
I use the kind of setup:
OS: Windows 11
Source code stored in WSL(Debian)-filesystem
Open project from VSCode with the WSL extension.
Steps to reproduce the behavior:
Open Angular Project stored in WSL-filesystem in VSCode.
Open an HTML file from the project.
Use VSCode shortcut (ctl + numpad / ) to comment out some lines of the HTML.
The issue disappeared, when I disabled the Angular Language Service VSCode extension in VSCode.
I realized that this only happens for me after a multi-line string. I'm not entirely sure if multi-line strings are supported, but the Angular compiler works just fine with it. I didn't notice because it is a very long file and that part must have been auto-formatted at some time.
<div>
{{
testValue
? ' Long text (that spans
multiple
lines)'
: ''
}}
<!-- Problem starts here -->
</div>
Dear Vscode-ng-language-service Team,
I have found a bug related to commenting out part of html-files in an Angular project using the VSCode shortcut.
bug report
Is this a regression?
Not to my knowledge. I quick search of the issues did not show somehting similar.
Description
When I try to comment out part of an HTML file in an Angular project using the shortcut ctl+/, it adds JS style comment syntax (//) instead of html style comment syntax (<!-- -->).
Bug Type
What does this bug affect
Reproduction
I use the kind of setup:
Steps to reproduce the behavior:
The issue disappeared, when I disabled the Angular Language Service VSCode extension in VSCode.
Expected behavior
Comment out the lines using <!-- --> syntax.
🌍 Your Environment
Angular Version:
Extension Version:
VSCode Version:
Operating System:
The text was updated successfully, but these errors were encountered: