ymotongpoo / vsc-licenser

License handler extension for Visual Studio Code.
Apache License 2.0
45 stars 40 forks source link

Added support to environment variables #94

Closed tevosouza closed 3 years ago

tevosouza commented 3 years ago

Fix #93 - Adding support to environment variables (custom mapped and OS env vars ) Notes: I faced problems when trying to use vscode.workspace.getWorkspaceFolder() instead I decided to use rootPath of the workspace (I don't know if this approach is the best option)

Deleted license.filePath = path.parse(fullPath) because it is causing the error error TS2339: Property 'filePath' does not exist on type 'License'.

Feel free to suggest changes Cya ;)

mnesarco commented 3 years ago

Thank you @tevosouza , I will test it as soon as I can but I don't know how to test VSCode extensions not released yet, so I have to wait the merge/release cycle.