feat: make optional files list customizable #9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue
This PR addresses part of this issue #3.
Description
This PR adds the ability to customize the files that you want to be listed when selecting optional files to create.
It does so by adding a setting to VSCode that can be set to certain defined presets or custom options.
For more information on how this new system works, I added some documentation to the readme.
It also generalizes the ability to import an optional file in the component file and creates the possibility of importing the component in the optional files so for example for test files, you would want to import the component so the extension can do it for you.
I added two presets aside from the two existing ones that I felt were common enough that it justified their addition but if you disagree let me know and I can remove them. If there is any other preset that you think would be good to add, also let me know.
Notes:
This is my first time working with Typescript so sorry if I butchered the code. Any comments on how to improve it will be most welcomed.
For some reason, my config of VSCode must be different and it added some spaces to format things like imports and function calls. I can work on reversing those changes if it was intentional the lack of spaces in those cases. Please let me know how you want me to proceed regarding this.
Preview
Extension with new feature in action:

Here is what settings I had set for said preview:
