Title: VSCode intellisense not working with typescript 3.7.5 in Angular projects · Issue #37187 · microsoft/TypeScript · GitHub
Open Graph Title: VSCode intellisense not working with typescript 3.7.5 in Angular projects · Issue #37187 · microsoft/TypeScript
X Title: VSCode intellisense not working with typescript 3.7.5 in Angular projects · Issue #37187 · microsoft/TypeScript
Description: TS Template added by Matt Bierner (@mjbvz) TypeScript Version: 3.7.5 Search Terms angular Using the latest vscode with Typescript 3.7.5, intellisense breaks for anything referencing node_modules. This is reflected on new projects created...
Open Graph Description: TS Template added by Matt Bierner (@mjbvz) TypeScript Version: 3.7.5 Search Terms angular Using the latest vscode with Typescript 3.7.5, intellisense breaks for anything referencing node_modules. T...
X Description: TS Template added by Matt Bierner (@mjbvz) TypeScript Version: 3.7.5 Search Terms angular Using the latest vscode with Typescript 3.7.5, intellisense breaks for anything referencing node_modules. T...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/37187
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"VSCode intellisense not working with typescript 3.7.5 in Angular projects","articleBody":"*TS Template added by @mjbvz*\r\n\r\n**TypeScript Version**: 3.7.5\r\n\r\n**Search Terms**\r\n- angular\r\n\r\n---\r\n\r\n\u003c!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->\r\n\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\nUsing the latest vscode with Typescript 3.7.5, intellisense breaks for anything referencing `node_modules`. This is reflected on new projects created with `@angular/cli` as well. Tested on an Angular 7 project to see if the version difference between Angular 7 and Angular 9 made a difference. \r\n\r\n\r\n\u003c!-- Use Help > Report Issue to prefill these. -->\r\n```\r\n> code --version\r\n1.42.1\r\nc47d83b293181d9be64f27ff093689e8e7aed054\r\nx64\r\n```\r\n\r\nSteps to Reproduce:\r\n\r\n1. Type a symbol that can be indexed from `node_modules` (e.g. ReactiveFormsModule from Angular).\r\n2. Hit `ctrl+space` or whatever is the intellisense hotkey is configured..\r\n3. `No Suggestions` appears.\r\n\r\nSwitching to the lower workspace Typescript version in my Angular 7 setup I can get the suggestions to show again.\r\n\r\nVideo reproduction with Typescript version switch:\r\n\r\n\r\nOn a fresh Angular 9 setup:\r\n\r\n\r\n\r\n\r\n\u003c!-- Launch with `code --disable-extensions` to check. -->\r\nDoes this issue occur when all extensions are disabled?: **Yes**\r\n\r\n\r\nSame project in Atom:\r\n\r\n\r\n\r\n**EDIT**: This appears to be happening in Atom with Typescript 3.7.5 as well now in the Angular 9 setup. Might be specifically a Typescript 3.7.5 issue.\r\n\r\n**EDIT EDIT**: It seems that adding `node_modules/@angular` as a typeRoot fixes some issues:\r\n\r\nTSCONFIG:\r\n```json\r\n{\r\n \"compileOnSave\": false,\r\n \"compilerOptions\": {\r\n \"baseUrl\": \"./\",\r\n \"outDir\": \"./dist/out-tsc\",\r\n \"sourceMap\": true,\r\n \"declaration\": false,\r\n \"downlevelIteration\": true,\r\n \"experimentalDecorators\": true,\r\n \"module\": \"esnext\",\r\n \"moduleResolution\": \"node\",\r\n \"importHelpers\": true,\r\n \"target\": \"es2015\",\r\n \"typeRoots\": [\r\n \"node_modules/@types\",\r\n \"node_modules/@angular\"\r\n ],\r\n \"lib\": [\r\n \"es2018\",\r\n \"dom\"\r\n ]\r\n },\r\n \"angularCompilerOptions\": {\r\n \"fullTemplateTypeCheck\": true,\r\n \"strictInjectionParameters\": true\r\n }\r\n}\r\n\r\n```\r\n\r\nIt seems that adding `node_modules/@angular` as a typeRoot fixes some issues:\r\n\r\n\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/admosity","@type":"Person","name":"admosity"},"datePublished":"2020-03-03T14:41:10Z","url":"https://github.com/microsoft/TypeScript/issues/37187"}
| 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:257a2388-4511-8967-8263-d2e10c2b0ebc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E520:13002:71CCC:8D5FE:6B00F277 |
| html-safe-nonce | 2d2dd1de8e27a77f2a39489e133a613cf26ce46863993feabe2ac8df27cb9aba |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTIwOjEzMDAyOjcxQ0NDOjhENUZFOjZCMDBGMjc3IiwidmlzaXRvcl9pZCI6IjEyMzU1MDMwNjYzNzI0NzA5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f028c8959163ae9d99b47b9e42daa09daa42cba757fa494c901e5b8cb5abeb59 |
| hovercard-subject-tag | issue:574874511 |
| 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/37187/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1c8b11022f2e8f077addfb67e8f54a66c4412084c9a14c6ad9fd897fedb7604f/microsoft/TypeScript/issues/37187 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1c8b11022f2e8f077addfb67e8f54a66c4412084c9a14c6ad9fd897fedb7604f/microsoft/TypeScript/issues/37187 |
| og:image:alt | TS Template added by Matt Bierner (@mjbvz) TypeScript Version: 3.7.5 Search Terms angular Using the latest vscode with Typescript 3.7.5, intellisense breaks for anything referencing node_modules. T... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | admosity |
| 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