Title: Intellisense is not working for self-references and # imports of typescript files in vscode · Issue #57777 · microsoft/TypeScript · GitHub
Open Graph Title: Intellisense is not working for self-references and # imports of typescript files in vscode · Issue #57777 · microsoft/TypeScript
X Title: Intellisense is not working for self-references and # imports of typescript files in vscode · Issue #57777 · microsoft/TypeScript
Description: 🔎 Search Terms "imports", "# imports" 🕗 Version & Regression Information This is a bug As far as I know, it has never worked ⏯ Playground Link https://github.com/magnusriga/my-app 💻 Code // foo.tsx import { Bar } from "#app/bar"; // Reso...
Open Graph Description: 🔎 Search Terms "imports", "# imports" 🕗 Version & Regression Information This is a bug As far as I know, it has never worked ⏯ Playground Link https://github.com/magnusriga/my-app 💻 Code // foo.tsx...
X Description: 🔎 Search Terms "imports", "# imports" 🕗 Version & Regression Information This is a bug As far as I know, it has never worked ⏯ Playground Link https://github.com/magnusriga/...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/57777
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Intellisense is not working for self-references and # imports of typescript files in vscode","articleBody":"### 🔎 Search Terms\r\n\r\n\"imports\", \"# imports\"\r\n\r\n### 🕗 Version \u0026 Regression Information\r\n\r\n- This is a bug\r\n- As far as I know, it has never worked\r\n\r\n### ⏯ Playground Link\r\n\r\nhttps://github.com/magnusriga/my-app\r\n\r\n### 💻 Code\r\n\r\n```ts\r\n// foo.tsx\r\nimport { Bar } from \"#app/bar\"; // Resolved by TS, but lacking Intellisense (ctrl+space suggestions).\r\nimport { Baz } from \"my-app/baz\"; // Resolved by TS, but lacking Intellisense (ctrl+space suggestions).\r\nimport { Qux } from \"./qux\"; // Resolved by TS and has full Intellisense.\r\nexport const Foo = () =\u003e {\r\n return (\r\n \u003c\u003e\r\n \u003cBar bar=\"bar\" /\u003e\r\n \u003cBaz baz=\"baz\" /\u003e\r\n \u003cQux qux=\"qux\" /\u003e\r\n \u003c/\u003e\r\n );\r\n};\r\n```\r\n```ts\r\n// bar.tsx (baz.tsx and qux.tsx are similar)\r\nexport const Bar = ({bar}: {bar: string}) =\u003e {\r\n return \u003cdiv\u003e{bar}\u003c/div\u003e\r\n}\r\n```\r\n\r\n```json\r\n// package.json\r\n{\r\n...\r\n \"name\": \"my-app\",\r\n \"imports\": {\r\n \"#app/*\": \"./src/app/*.js\"\r\n },\r\n \"exports\": {\r\n \"./*\": \"./src/app/*.js\"\r\n },\r\n...\r\n```\r\n\r\nI am using `\"typescript\": \"5.5.0-dev.20240314\"`.\r\n\r\n### 🙁 Actual behavior\r\n\r\nThe import specifiers do not provide Intellisense suggestions. TS is able to resolve the files however, so there is no TS error.\r\n\r\n### 🙂 Expected behavior\r\n\r\nThe expected behavior is for Intellisense to understand the TS resolution and provide suggestions with ctrl+space.\r\n\r\n### Additional information about the issue\r\n\r\n_No response_","author":{"url":"https://github.com/magnusriga","@type":"Person","name":"magnusriga"},"datePublished":"2024-03-14T10:06:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/57777/TypeScript/issues/57777"}
| 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:764f941f-a80c-8195-ffb5-65585fbbc608 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E336:326CF:137D42E:1A4EF3D:6A606D19 |
| html-safe-nonce | 5f63c9930345a8fca828c2b65988f120840833a83850bbaddf3f391c77010b80 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzM2OjMyNkNGOjEzN0Q0MkU6MUE0RUYzRDo2QTYwNkQxOSIsInZpc2l0b3JfaWQiOiI3NzA5MzIyNDE2NzAwMjg4MjgxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fe2a713e5cadee3e09b78bb8962402c8bcd9f4cb8728713b9129bfe5b62f2984 |
| hovercard-subject-tag | issue:2185947929 |
| 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/57777/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6eeca0c005a15e14593542247cda6072cf627fc90709fa92a2cce7a6a12bc115/microsoft/TypeScript/issues/57777 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6eeca0c005a15e14593542247cda6072cf627fc90709fa92a2cce7a6a12bc115/microsoft/TypeScript/issues/57777 |
| og:image:alt | 🔎 Search Terms "imports", "# imports" 🕗 Version & Regression Information This is a bug As far as I know, it has never worked ⏯ Playground Link https://github.com/magnusriga/my-app 💻 Code // foo.tsx... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | magnusriga |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60da8c2a42fa2bbf5f7567474990ec467836a84444262a58e200fa91b7f3d2d0 |
| 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 | 9824515e740d83d5eb82168a089b806ab0fe04a1 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width