Title: [API Question] Is there a type resolution depth limit difference between compiling and running the language service? · Issue #29511 · microsoft/TypeScript · GitHub
Open Graph Title: [API Question] Is there a type resolution depth limit difference between compiling and running the language service? · Issue #29511 · microsoft/TypeScript
X Title: [API Question] Is there a type resolution depth limit difference between compiling and running the language service? · Issue #29511 · microsoft/TypeScript
Description: TS 3.3.0-dev.20190103 I don't exactly have a minimal repro but I figured I'd ask my question first. I'm experiencing a problem that I can only think is because TS is "giving up" on resolving the type in the IDE. But it resolves the type ...
Open Graph Description: TS 3.3.0-dev.20190103 I don't exactly have a minimal repro but I figured I'd ask my question first. I'm experiencing a problem that I can only think is because TS is "giving up" on resolving the ty...
X Description: TS 3.3.0-dev.20190103 I don't exactly have a minimal repro but I figured I'd ask my question first. I'm experiencing a problem that I can only think is because TS is "giving up&quo...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/29511
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[API Question] Is there a type resolution depth limit difference between compiling and running the language service?","articleBody":"TS 3.3.0-dev.20190103\r\n\r\nI don't exactly have a minimal repro but I figured I'd ask my question first.\r\n\r\nI'm experiencing a problem that I can only think is because TS is \"giving up\" on resolving the type in the IDE. But it resolves the type correctly during compile time.\r\n\r\n### IDE\r\n\r\nI'm currently seeing this in my IDE,\r\n\r\n\r\n\r\nAnd it seems to think that the following type, `ReturnType\u003cSelectDelegateT>[index]` is `any`.\r\n\r\nIt also thinks that `ReturnType\u003cSelectDelegateT>` is `any`.\r\n\r\nHowever, when I just use `SelectDelegateT`, it gives me the full type, which is correct.\r\n\r\n### Compile-time\r\n\r\nIt was really weird because I was pretty sure I shouldn't get an error. I gave up on the IDE and decided to run `tsc`. I configured it to have `noEmitOnError : true`.\r\n\r\nSo, if there really is an error, it should spit out the same error as the IDE and not emit any types.\r\n\r\nHowever, `tsc` ran fine. No errors.\r\n\r\n\r\n\r\nI checked the emitted `.d.ts` file and the emitted type was resolved correctly.\r\n\r\n-----\r\n\r\nSo... Is my hunch right? Is there a \"depth limit\" difference between the language service that runs for the IDE (VS Code) vs the compiler?\r\n\r\nAnd if so, is there a way for me to make it so that both have the same limit?\r\nIf possible, I'd like to make the limit as large as possible for both VS code and during compile-time.","author":{"url":"https://github.com/AnyhowStep","@type":"Person","name":"AnyhowStep"},"datePublished":"2019-01-21T18:41:02Z","url":"https://github.com/microsoft/TypeScript/issues/29511"}
| 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:32fe0ab1-cad9-59e2-cf04-ab6e4b4c8e88 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F94:2E5652:275253D:320D6C9:6B019A63 |
| html-safe-nonce | 716b479885f0bc2a51ffdda899a531e758a3db3b6694a824b638cd8b9f71bcb6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Rjk0OjJFNTY1MjoyNzUyNTNEOjMyMEQ2Qzk6NkIwMTlBNjMiLCJ2aXNpdG9yX2lkIjoiMzk4ODUzOTc0MjIxMDg1NzU3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 264ad1ed9b9b59c68f093e673752cae1a63ebca5d0a791d3e09501e3432346b7 |
| hovercard-subject-tag | issue:401470868 |
| 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/29511/issue_layout |
| twitter:image | https://opengraph.githubassets.com/505f656f89aabcb0ff6b33e7c6dd732507c7a9be88b8e74defce51cf8ac3838d/microsoft/TypeScript/issues/29511 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/505f656f89aabcb0ff6b33e7c6dd732507c7a9be88b8e74defce51cf8ac3838d/microsoft/TypeScript/issues/29511 |
| og:image:alt | TS 3.3.0-dev.20190103 I don't exactly have a minimal repro but I figured I'd ask my question first. I'm experiencing a problem that I can only think is because TS is "giving up" on resolving the ty... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AnyhowStep |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width