Skip to content

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

Description

@psnet

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

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

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)

Image

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bughelp wantedIssues identified as good community contribution opportunitieshtmlHTML support issuesinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions