Skip to content

[WIP] Add extension option for custom imports in package loading#26

Closed
Copilot wants to merge 1 commit into
v0.1.6/refactor-codefrom
copilot/generous-locust
Closed

[WIP] Add extension option for custom imports in package loading#26
Copilot wants to merge 1 commit into
v0.1.6/refactor-codefrom
copilot/generous-locust

Conversation

Copy link
Copy Markdown

Copilot AI commented Oct 28, 2025

Plan to implement custom import configuration feature:

  • Add configuration setting for custom package imports in package.json
  • Update sidebar.ts to use custom import configuration when loading packages
  • Update getImportName function or create new logic to handle custom imports
  • Add UI to allow users to configure custom imports
  • Test the feature with various import patterns
  • Update documentation (README.md) to explain the new feature

Current behavior: When checking a package box, it imports the whole package using import <package>
Target behavior: Allow users to define custom import patterns like from package import module or import package as alias

Original prompt

Work on TODO: A default option is to load the whole package, but we can write an extension option to allow users define custom imports (from src/sidebar.ts)

Created from VS Code via the GitHub Pull Request extension.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants