Skip to content

Finding definitions exported by string key does not work #24895

@mjbvz

Description

@mjbvz

From @Flamefire on June 9, 2018 12:35

  • VSCode Version: 1.24.0
  • OS Version: WIn10 x64

Steps to Reproduce:

  1. Export by string key:
function parse(){return 1;}
exports["parse"] = parse; // exports.parse = parse;
  1. Import and try GoTo Def:
    require("./foo")
    foo.parse(); // Not found

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

Both versions (exports["parse"] = parse; // exports.parse = parse;) should work exactly the same.

Copied from original issue: microsoft/vscode#51520

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: JavaScriptThe issue relates to JavaScript specificallyVS Code TrackedThere is a VS Code equivalent to this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions