-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add in a templating system to handle more complex set ups #98
Conversation
I've now amended this to work as a config object instead of a template in the strictest form there are some more additions to be made but this feels like it is on the right track for managing gaps etc in a properly controlled way |
LGTM. |
See https://github.com/neild3r/vscode-php-docblocker/blob/templates/README.md#templating for examples on how to use the new templating system |
Can this feature be used today? This sounds like a nice thing to have. |
This is the start of a change to add a templating system in to the package to allow for uses to do a more advanced configuration of how they want their docblocks to be displayed and would allow people to move things around or remove params by creating their own templates.
The key difficulty I have at the moment is with the old configs for adding in gaps which could now be made redundant but also for what happens to gaps when certain parameters aren't defined such as a gap between params and return when there is no return or no params or neither. Perhaps this change can make things a bit too messy