Skip to content

Suggestion not shown but parameter hints do show in JS file  #43647

Closed

Description

@mjbvz
  • VS Code Version: 1.55.1
  • OS Version: Windows 20h2

From #43646

const elementsContainer = document.querySelectorAll('ul');
elementsContainer.forEach((e) => {
    e.addEventListener('dragenter', (e) => {
      e.currentTarget.
    });
});
  1. Try triggering suggestions for closest

3

Activity

  1. mjbvz commented on Apr 12, 2021

    @mjbvz
    ContributorAuthor

    The type of e is any which is why you don't see suggestions

    The parameter hints have looser symbol resolving logic. This came up with one of the Math symbols before. I think we should consider disabling as I'm not sure how helpful it actually is

  2. andrewbranch commented on Apr 12, 2021

    @andrewbranch
    Member

    Isn’t this an example of it working exactly how it’s supposed to work? e.currentTarget very likely is an Element. We don’t always get these right, but this seems like a demonstration of the value proposition of the feature, not a bug.

  3. typescript-bot commented on Apr 18, 2021

    @typescript-bot
    Contributor

    This issue has been marked 'Working as Intended' and has seen no recent activity. It has been automatically closed for house-keeping purposes.

  4. locked as resolved and limited conversation to collaborators on Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Working as IntendedThe behavior described is the intended behavior; this is not a bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions