Skip to content

[Project References] references-full returning definition in mapped .d.ts file #26175

@amcasey

Description

@amcasey

Setup: Function F declared in Project1, consumed in Project2.
Repro: Request references-full for the occurrence in Project 2.
Response (with unrelated properties pruned):

{
  "seq": 0,
  "type": "response",
  "command": "references-full",
  "request_seq": 51,
  "success": true,
  "body": [
    {
      "definition": {
        "fileName": "C:/Users/amcasey/source/repos/NodeJsProjRef/NodeJsProjRef/bin/proj2.d.ts",
        "name": "function NS18.stuff(): void",
        "textSpan": {
          "start": 39,
          "length": 5
        }
      },
      "references": [
        {
          "fileName": "C:/Users/amcasey/source/repos/NodeJsProjRef/NodeJsProjRef/proj2/file2.ts",
          "textSpan": {
            "start": 45,
            "length": 5
          }
        }
      ]
    },
    {
      "definition": {
        "fileName": "C:/Users/amcasey/source/repos/NodeJsProjRef/NodeJsProjRef/proj1/file1.ts",
        "name": "function NS18.stuff(): void",
        "textSpan": {
          "start": 35,
          "length": 5
        }
      },
      "references": [
        {
          "fileName": "C:/Users/amcasey/source/repos/NodeJsProjRef/NodeJsProjRef/proj1/file1.ts",
          "textSpan": {
            "start": 35,
            "length": 5
          }
        }
      ]
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions