GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Auto-imports don’t work in content-mappers without existing import · Issue #64119 · microsoft/TypeScript Open Labels Milestone Description🔎 Search Terms
🕗 Version & Regression Information
⏯ Playground Linkn/a 💻 Codehttps://github.com/remcohaszing/mdx-content-mapper/tree/auto-import-issue Specifically, remcohaszing/mdx-content-mapper@04037c2 🙁 Actual behaviorAutomatic imports work, if the statement to insert it to is already present. However, if the import statement isn’t present yet, then TypeScript won’t generate the statement. This works:
This does not:
🙂 Expected behaviorAutomatic imports always work. Additional information about the issueI tried to make this work by pushing an empty verbatim mapping to the start of the virtual content, like below. The virtual content may start with let esm = checkMdx ? '// @ts-check\n' : '' esmMappings.push([ 0, 0, esm.length, 0, /** @satisfies {SpanMapKind.Verbatim} */ (0), /** @satisfies {SpanMapFeature.AutoInsert} */ (131_072) ]) Activity
MetadataMetadataAssigneesLabelsTypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |