microsoft / microsoft/TypeScript

References code lens does not include imports as references

Open
#63,794 0 comments 1 reaction 1 assignee View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
111k
Forks
14.3k
Avg merge
2d 4h
Merged PRs (30d)
132

Description

For a project:

```ts
// abc.ts
export function abc() { }
```

```ts
// other.ts
import { abc } from "./abc";
```

The references code lens currently shows `0` references

I can understand why it's doing this but it also feels a bit unexpected. TS 6.0 includes the imports as references

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.