Uh oh!
There was an error while loading. Please reload this page.
This repository was archived by the owner on Jun 7, 2022. It is now read-only.
This repository was archived by the owner on Jun 7, 2022. It is now read-only.
There was an error while loading. Please reload this page.
There is currently no way for the backend to know when tsserver finished loading a project. Therefor references results often come back empty.
A solution to this would be to subclass the TypeScript langserver and interact with tsserver directly to get access to the tsserver events and requests for loading projects:
https://sourcegraph.com/github.com/Microsoft/TypeScript@b8def16e92f609327971f07232757fa6c7d29a56/-/blob/src/server/protocol.ts#L1430-1436
https://sourcegraph.com/github.com/Microsoft/TypeScript@b8def16e92f609327971f07232757fa6c7d29a56/-/blob/src/server/protocol.ts#L2459-2463