Skip to content

IntelliSense for CommonJs/NodeJs not working properly. #46521

@KrishGarg

Description

@KrishGarg

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

  • VS Code Version: 1.61.2
  • OS Version: Windows_NT x64 10.0.19042

Steps to Reproduce:

  1. Open any file with .js extension.
  2. Start typing require or module.

Expected Result:

Get IntelliSense for them as they are part of CommonJs.

Actual Result:

No IntelliSense for it.

Bug 2:

It's a bug connected to the above one. If you add require("fs") in the file, suddenly IntelliSense for all CommonJs now works.

Images:

  • From a new file with the selected language as Javascript.
    image
    image

  • After adding the require("fs") at the top brings back the IntelliSense.
    image
    image

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