Skip to content

incorrect comment blocks in html script blocks #59

Open
@rishavs

Description

@rishavs

if I have a html string like this;

let str = /*html*/`
<div> This is a div </div>
<script> console.log("This is script")</script>
`

I want to use the comment shortcuts in vs code to comment out the js within the script tags.
I would expect the comment command to add // to the line.
Instead it adds <!-- --> to the line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions