Title: Missing references by tsserver when using export * as · Issue #39006 · microsoft/TypeScript · GitHub
Open Graph Title: Missing references by tsserver when using export * as · Issue #39006 · microsoft/TypeScript
X Title: Missing references by tsserver when using export * as · Issue #39006 · microsoft/TypeScript
Description: 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 VSC...
Open Graph Description: 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/...
X Description: 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/...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/39006
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Missing references by tsserver when using export * as","articleBody":"\u003c!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨\r\n\r\nHalf of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common \"Bugs\" That Aren't Bugs section!\r\n\r\nPlease help us by doing the following steps before logging an issue:\r\n * Search: https://github.com/Microsoft/TypeScript/search?type=Issues\r\n * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ\r\n\r\nPlease fill in the *entire* template below.\r\n-->\r\n\r\n\u003c!--\r\nPlease try to reproduce the issue with the latest published version. It may have already been fixed.\r\nFor npm: `typescript@next`\r\nThis is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly\r\n-->\r\n**TypeScript Version:** Tried with 3.8.0, 3.9.5 and `next`\r\n\r\n\u003c!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:**\r\nreferences\r\nexport * as\r\ntsserver\r\n\r\n**Code**\r\nReproduction branch https://github.com/jomi-se/ts-scripting-env/tree/ts-references-export-as/src\r\n\r\nTry 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.\r\n\r\nTl;dr\r\n```ts\r\n// importing.ts\r\nimport { Leaf } from './exporting';\r\n\r\nLeaf.hello()\r\n\r\n// exporting.ts\r\nexport * as Leaf from './leafModule'\r\n\r\n// leafModule.ts\r\n// Try to get the references of `hello` declared here\r\nexport const hello = () => console.log('Hello')\r\n```\r\n\r\n**Expected behavior:**\r\nThe usage of `hello` in `importing.ts` (in `Leaf.hello()`) should be listed in its references\r\n\r\n**Actual behavior:**\r\nThe usage of `hello` in `importing.ts` (in `Leaf.hello()`) is not listed. However, using `go to definition` from this usage does work correctly.\r\n\r\n**Related Issues:** \r\nFound this https://github.com/microsoft/TypeScript/issues/33017 but it didn't mention `export * as ...` cases\r\n","author":{"url":"https://github.com/jomi-se","@type":"Person","name":"jomi-se"},"datePublished":"2020-06-10T10:01:10Z","url":"https://github.com/microsoft/TypeScript/issues/39006"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bf9d0afe-7b85-9208-7a87-c9bb8185c13f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D07A:785A9:CCCA01:1046B17:6B01002D |
| html-safe-nonce | 07c95f98a85ca0bac9317eed40feee724323893171ffb546aec3d97f5aeb282f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDdBOjc4NUE5OkNDQ0EwMToxMDQ2QjE3OjZCMDEwMDJEIiwidmlzaXRvcl9pZCI6Ijc3Nzc5NjY3ODczNTM3MDY1NDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d8e278ca188f8148d056621d423255b7ffa8c4b69c57a588dc49c85d9c173021 |
| hovercard-subject-tag | issue:636114420 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/39006/issue_layout |
| twitter:image | https://opengraph.githubassets.com/85506fd0e939f46e373edcade60a071f55ef63ce2053eabfd2d856adab36626d/microsoft/TypeScript/issues/39006 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/85506fd0e939f46e373edcade60a071f55ef63ce2053eabfd2d856adab36626d/microsoft/TypeScript/issues/39006 |
| og:image:alt | 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/... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jomi-se |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width