microsoft / microsoft/TypeScript

Go-to-definition does not work on `/// <reference lib="..." />` directives

Open
#64,086 0 comments 1 reaction 2 assignees Claimed by @DanielRosenwasser View on GitHub
Bug Domain: LS: Symbol Navigation
Dominant language
Go
Stars
111k
Forks
14.3k
PR merge metrics
PR metrics pending

Description

```
///
```

In TypeScript 6, go to definition works on any position in the string and jumps you to the appropriate `lib.es2025.d.ts`.

In TypeScript 7, this no longer works.

I assume we have a test that was disabled at some point. If that exists, we should bring it back.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.