Microsoft/vscode

BUG: No description for JS classes/methods in `script` tag for `html` file

Open

#268776 opened on Sep 28, 2025

View on GitHub
 (3 comments) (0 reactions) (1 assignee)TypeScript (74,848 stars) (10,221 forks)batch import
bughelp wantedhtml

Description

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

  • VS Code Version: 1.104.2
  • OS Version: Windows_NT x64 10 Commit: e3a5acfb517a443235981655413d566533107e92

Steps to Reproduce

  1. Lets have a code:
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        const dt = new DataTransfer();
    </script>

</body>

</html>
  1. Hover mouse cursor over DataTransfer constructor.

ER

Will be displayed JSDoc with description text and link to online docs (mdn) from lib.dom.d.ts as it is declared:

/**
 * The **`DataTransfer`** object is used to hold any data transferred between contexts, such as a drag and drop operation, or clipboard read/write.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer)
 */
interface DataTransfer {
...

AR

No JSDoc description and no link to online docs (mdn)

Contributor guide