This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
TypeScript cross-repository go to definition broken with LSIF #9952
Closed
Description
Actual
- Go to https://sourcegraph.com/github.com/sourcegraph/about/-/blob/website/src/components/Header.tsx
- Hover over
Link
in the first line - Get no hover or go to definition
Expected
As an example of what would be expected, this is how the language server behaves:
- Add to your user settings:
"codeIntel.lsif": false, "typescript.serverUrl": "wss://typescript.sourcegraph.com"
- Navigate to https://sourcegraph.com/github.com/sourcegraph/sourcegraph-typescript/-/blob/src/tracing.ts
- Hover over
Span
in the first line - Wait for dependency installation to finish (this would not be expected for LSIF of course 🙂 )
- Hover again, click go to definition
- Get taken to https://sourcegraph.com/github.com/opentracing/opentracing-javascript@cb74683fefe5bd4d711eaa0c273f3fc17a6c3781/-/blob/src/span.ts#L11:1
There are some special cases here that are considered too, like JS-only libraries that jump to the definition of the typings in https://github.com/DefinitelyTyped/DefinitelyTyped, or references to the standard library, that jump to the lib.d.ts in https://github.com/Microsoft/TypeScript (at the right TypeScript version)