microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.26k stars 29.3k forks source link

Marks don't show in minimap for HTML <script> JavaScript #229319

Open asnewman opened 1 month ago

asnewman commented 1 month ago

Does this issue occur when all extensions are disabled?: Yes

Steps to Reproduce:

  1. Take the following HTML file:
    <!DOCTYPE html>
    <html>
    <head>
    <title>Basic HTML with JavaScript</title>
    <script type="text/javascript">
        // MARK: This is my mark
        function showAlert() {
            alert("Hello, World!");
        }
    </script>
    </head>
    <body onload="showAlert()">
    <h1>Welcome to My Website</h1>
    <p>This is a basic HTML file with embedded JavaScript.</p>
    </body>
    </html>

The MARK in the <script> portion of the HTML will not show in the minimap.

vs-code-engineering[bot] commented 1 month ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.93.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

asnewman commented 1 month ago

This bug is still present on v1.92.2.