Title: Autoimport not working correctly after yield keyword · Issue #36933 · microsoft/TypeScript · GitHub
Open Graph Title: Autoimport not working correctly after yield keyword · Issue #36933 · microsoft/TypeScript
X Title: Autoimport not working correctly after yield keyword · Issue #36933 · microsoft/TypeScript
Description: TypeScript Version: 3.9.0-dev.20200220 Search Terms: yield in combination with looking for import in the title. Code import { call } from 'redux-saga/effects'; export function* test() { select(); // works const token = yield select(() =>...
Open Graph Description: TypeScript Version: 3.9.0-dev.20200220 Search Terms: yield in combination with looking for import in the title. Code import { call } from 'redux-saga/effects'; export function* test() { select(); /...
X Description: TypeScript Version: 3.9.0-dev.20200220 Search Terms: yield in combination with looking for import in the title. Code import { call } from 'redux-saga/effects'; export function* test() { sel...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/36933
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Autoimport not working correctly after yield keyword","articleBody":"**TypeScript Version:** 3.9.0-dev.20200220\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\nyield in combination with looking for import in the title.\r\n\r\n**Code**\r\n\r\n```ts\r\nimport { call } from 'redux-saga/effects';\r\n\r\nexport function* test() {\r\n select(); // works\r\n const token = yield select(() => 0); // doesn't work\r\n yield call((a: string) => a, \"\");\r\n}\r\n```\r\n\r\n**Expected behavior:**\r\n\r\nAuto import should work\r\n\r\n**Actual behavior:**\r\n\r\nAuto import only works when no yield is in front of the statement.\r\n\r\n**Playground Link:** https://codesandbox.io/s/affectionate-khorana-t6e9h\r\n**GitHub Repo:** https://github.com/SantoJambit/yield-autoimport-issue\r\n","author":{"url":"https://github.com/SantoJambit","@type":"Person","name":"SantoJambit"},"datePublished":"2020-02-21T14:02:54Z","url":"https://github.com/microsoft/TypeScript/issues/36933"}
| 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:fccfb86d-7822-0307-495e-de2c81f0f7a8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 82C6:EA06E:D97B2E:117ED46:6B00F19E |
| html-safe-nonce | 40c216a0667058a626999b191cce117551b021e80cfefbf4537bb75fa983e890 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkM2OkVBMDZFOkQ5N0IyRToxMTdFRDQ2OjZCMDBGMTlFIiwidmlzaXRvcl9pZCI6Ijg5MjY1NTE3MTUwMjEzODYxNDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 919f4ab2e7b6105725ee390b1db350fa00085b9965b1abc6f9891cc0a3e91ac8 |
| hovercard-subject-tag | issue:568973705 |
| 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/36933/issue_layout |
| twitter:image | https://opengraph.githubassets.com/97406d838df6097d83b07ed5f97d6bc193e3a832034c850a5c44f1146fd2c9ce/microsoft/TypeScript/issues/36933 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/97406d838df6097d83b07ed5f97d6bc193e3a832034c850a5c44f1146fd2c9ce/microsoft/TypeScript/issues/36933 |
| og:image:alt | TypeScript Version: 3.9.0-dev.20200220 Search Terms: yield in combination with looking for import in the title. Code import { call } from 'redux-saga/effects'; export function* test() { select(); /... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SantoJambit |
| 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