Open
Description
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and couldn’t find anything (or linked relevant results below)
Affected packages and versions
MDX VS Code Extension v1.8.9
Link to runnable example
No response
Steps to reproduce
As noted in #451 (comment), the IntelliSense entries for auto-import of React components in .tsx
files (auto-import in an .mdx
file) are missing.
- Clone the reproduction at https://github.com/karlhorky/repro-mdx-analyzer-missing-auto-import-intellisense
- Install the 2 recommended extensions
[email protected]
and[email protected]
(both enabled) - In
app/message.mdx
, move the cursor to the endZoomImage
and trigger IntelliSense with ctrl-space - Observe one entry in IntelliSense
- Select this entry
- Observe the import is added at the end of the file
- Disable
[email protected]
- Move the cursor to the end
ZoomImage
and trigger IntelliSense with ctrl-space - Observe zero entries in IntelliSense
Version: 1.91.0-insider
Commit: aea213b7fcc7de5c24ad797ac1af209b159d451f
Date: 2024-06-28T06:02:58.030Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Darwin arm64 23.5.0
Repo: https://github.com/karlhorky/repro-mdx-analyzer-missing-auto-import-intellisense
Kapture.2024-06-28.at.17.33.21.mp4
Expected behavior
- One entry in the IntelliSense for
ZoomImage
when only[email protected]
installed - Selecting the entry should add the new import to the top of the code (also when
[email protected]
enabled)- Saving the file with an import not in the import block at the top should move the import to the top of the file
Actual behavior
- Zero entries in the IntelliSense for
ZoomImage
when only[email protected]
installed - (when
[email protected]
enabled) selecting the entry adds the new import to the bottom of the code- Saving the file has no effect
Runtime
Node v20
Package manager
No response
OS
macOS
Build and bundle tools
Next.js