Title: Auto complete not working for packages except those under @types folder · Issue #30474 · microsoft/TypeScript · GitHub
Open Graph Title: Auto complete not working for packages except those under @types folder · Issue #30474 · microsoft/TypeScript
X Title: Auto complete not working for packages except those under @types folder · Issue #30474 · microsoft/TypeScript
Description: VSCode Version: 1.30.2 OS Version: macOS v10.13.6 Auto complete is one of my favorite features of VS code. But sometimes it doesn't provide what I need. Steps to Reproduce: Create a project with create-react-app: npx create-react-app tes...
Open Graph Description: VSCode Version: 1.30.2 OS Version: macOS v10.13.6 Auto complete is one of my favorite features of VS code. But sometimes it doesn't provide what I need. Steps to Reproduce: Create a project with cr...
X Description: VSCode Version: 1.30.2 OS Version: macOS v10.13.6 Auto complete is one of my favorite features of VS code. But sometimes it doesn't provide what I need. Steps to Reproduce: Create a project wit...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/30474
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Auto complete not working for packages except those under @types folder","articleBody":"\u003c!-- Please search existing issues to avoid creating duplicates. -->\r\n\u003c!-- Also please test using the latest insiders build to make sure your issue has not already been fixed: https://code.visualstudio.com/insiders/ -->\r\n\r\n\u003c!-- Use Help > Report Issue to prefill these. -->\r\n- VSCode Version: 1.30.2\r\n- OS Version: macOS v10.13.6\r\n\r\nAuto complete is one of my favorite features of VS code. But sometimes it doesn't provide what I need.\r\n\r\nSteps to Reproduce:\r\n\r\n1. Create a project with create-react-app: `npx create-react-app test-auto-complete --typescript`\r\n2. Create a empty file `src/test.tsx`.\r\n3. Make sure auto complete works: type `isvalid` and get following suggestions\r\n \r\n Then confirm:\r\n \r\n4. Install a typed package from npm. (I made one - [safe-touch](https://www.npmjs.com/package/safe-touch)\r\n5. See if auto complete works for the package(type `safe` and expect suggestion of `safeTouch`):\r\n \r\n Negative :(\r\n6. There is a difference between the types file of safe-touch and react. Safe-touch's is directly under `node_modules` while react's is under `node_modules/@types/`. Then I tried to make a folder under `@types` for the package, simply `cp -r node_modules/safe-touch node_modules/@types`.\r\n7. See if auto complete works now:\r\n \r\n It works! 🎉🎉\r\n\r\nSo it seems that VS code is not able to auto complete types of `node_modules/[package]` even if the package is correctly typed?\r\n\r\n\u003c!-- Launch with `code --disable-extensions` to check. -->\r\nDoes this issue occur when all extensions are disabled?: Yes/No\r\nNo","author":{"url":"https://github.com/EnixCoda","@type":"Person","name":"EnixCoda"},"datePublished":"2019-01-19T17:23:53Z","url":"https://github.com/microsoft/TypeScript/issues/30474"}
| 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:9bb765bf-5628-1425-2ff9-237057adf1ea |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D008:EDA7A:9DC7D2:C9E025:6B00F1AA |
| html-safe-nonce | 1b6c47737a015270c9b590f59f229c23cde5f2aa4a9c5401616b2e8bd13413f8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDA4OkVEQTdBOjlEQzdEMjpDOUUwMjU6NkIwMEYxQUEiLCJ2aXNpdG9yX2lkIjoiNDg4ODU4Njc2NjU2ODcxNDY2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ae6eb8cec3434c1f0295b22d7819d85f4e17f89270cea7e11ce86cf076b8a012 |
| hovercard-subject-tag | issue:422439783 |
| 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/30474/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1354e2b01329105441c1cc9296452cba52b73674f85fdeadb3d5e1a3c316f44e/microsoft/TypeScript/issues/30474 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1354e2b01329105441c1cc9296452cba52b73674f85fdeadb3d5e1a3c316f44e/microsoft/TypeScript/issues/30474 |
| og:image:alt | VSCode Version: 1.30.2 OS Version: macOS v10.13.6 Auto complete is one of my favorite features of VS code. But sometimes it doesn't provide what I need. Steps to Reproduce: Create a project with cr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | EnixCoda |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| 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 | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width