Description
TypeScript Version: 3.5.2
Search Terms:
Code
We have some code that looks like this:
./main.ts
:
import { types } from './types';
type Test = types.Foo;
./types/index.ts
:
import * as types from './types';
export { types };
./types/types.ts
:
export type Foo = 1;
When I try to find references for Foo
, I'm getting no results. "Go to definition" does still work.
However, I can only reproduce this behaviour in our large TS project. I've tried and failed to create a reduced test case. If I start removing files from our large TS project, it will eventually begin to work, suggesting there's some sort of (memory?) threshold which we could be crossing.
Here is a video recording to demonstrate this: https://www.dropbox.com/s/xw7c3lk0mxhr5vj/Screen%20Recording%202019-08-21%20at%2021.40.59.mov?dl=0
I have also attached a TS server log, which was recorded at the same time as the above video.
Any ideas what could be going on here? What's the best way for me to debug this?