Description
openedon Jun 10, 2020
TypeScript Version: Tried with 3.8.0, 3.9.5 and next
Search Terms:
references
export * as
tsserver
Code
Reproduction branch https://github.com/jomi-se/ts-scripting-env/tree/ts-references-export-as/src
Try to get the references (using VSCode or another editor that uses tsserver
) for the hello
function in leafModule.ts
. It's usage in importing.ts
is not listed on the result.
Tl;dr
// importing.ts
import { Leaf } from './exporting';
Leaf.hello()
// exporting.ts
export * as Leaf from './leafModule'
// leafModule.ts
// Try to get the references of `hello` declared here
export const hello = () => console.log('Hello')
Expected behavior:
The usage of hello
in importing.ts
(in Leaf.hello()
) should be listed in its references
Actual behavior:
The usage of hello
in importing.ts
(in Leaf.hello()
) is not listed. However, using go to definition
from this usage does work correctly.
Related Issues:
Found this #33017 but it didn't mention export * as ...
cases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment