🚀 Enhance VS Code's "Find All References" feature by including dynamic and lazy imports in JavaScript and TypeScript files.
This extension ensures that references to dynamically imported modules are properly tracked, helping you navigate your codebase more efficiently.
✅ Find References for Dynamic Imports:
🔍 Includes import()
statements and lazy-loaded modules in "Find All References."
✅ Supports JavaScript & TypeScript:
📜 Works with .js
, .jsx
, .ts
, and .tsx
files.
✅ Seamless Integration:
⚡ Works natively with VS Code's "Find All References" feature.
- Open VS Code.
- Go to Extensions (
Ctrl+Shift+X
orCmd+Shift+X
on macOS). - Search for Dynamic Import References.
- Click Install.
- Restart VS Code if necessary.
- Open a JavaScript or TypeScript file.
- Right-click on a function, variable, or import and select Find All References.
- View all references, including dynamically imported modules.
- JavaScript (
.js
,.jsx
) - TypeScript (
.ts
,.tsx
)
No additional configuration is required. The extension works automatically when enabled.
- Clone the repository:
https://github.com/bubablue/dynamic-import-references
- Install dependencies:
npm install
- Open in VS Code:
code .
- Run the extension:
- Press
F5
to start a new Extension Development Host.
- Press
To build and package the extension:
npm run package
Contributions are welcome! Please submit issues and pull requests on GitHub.
This project is licensed under the MIT License.