You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I really enjoy this extension and I want to automatically include my project's current package name in the "@Package" tag and version number in the "@SInCE" tag for class and function DocBlocks. I'm wondering if there's even a way to do this, I just want to define "@SInCE" at runtime using the results of $ git describe --tags or process.env.version or a version number from the workspace's .env file.
I've included both the environment variable and custom config tags for such variables since it's part of my troubleshooting to see if the value can be loaded from either place.
After forking the extension and doing some digging it seems no environment variables are available to extension configuration settings by default and developers must provide this feature independently. The scoped variables like env, config, command, etc seem to only be available to launch.json and tasks.json configurations.
It would be very helpful if I could do git describe --tags and have that be the value of @since tags since that would avoid duplicate work. But because that is very specific I decided against it and implemented a way for this extension to replace environment variable tags in its settings with environment variables available to VS Code's other JSON files.
Hi, I really enjoy this extension and I want to automatically include my project's current package name in the "@Package" tag and version number in the "@SInCE" tag for class and function DocBlocks. I'm wondering if there's even a way to do this, I just want to define "@SInCE" at runtime using the results of
$ git describe --tags
orprocess.env.version
or a version number from the workspace's .env file.I've included both the environment variable and custom config tags for such variables since it's part of my troubleshooting to see if the value can be loaded from either place.
Here is my PHP DocBlocker config for classes:
../.vscode/settings.json
I have tried loading custom variables in the following places but they are not detected and not replacing the above values in the generated DocBlock.
I'm using Windows 10 and VSCode 1.69.
I even created my own extension in the hopes that I could retrieve this information but with no luck.
Thank you for your time and let me know if you need more information.
The text was updated successfully, but these errors were encountered: