ymotongpoo / vsc-licenser

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

licenser.customHeaderFile only works with absolute file path #93

Closed mnesarco closed 3 years ago

mnesarco commented 3 years ago

Runtime environment

Behaviors

Expected behavior

licenser.customHeaderFile should allow to specify a path relative to project dir or resolve ${workspaceFolder}

Actual behavior

Only works with absolute file path

Steps to reproduce the issue

Define licenser.customHeaderFile setting in .vscode/settings.json:

{
    "licenser.customHeaderFile": "${workspaceFolder}/.vscode/license-template.txt",
    "licenser.license": "Custom"
}
tevosouza commented 3 years ago

Hi @mnesarco I made a pull-request adding this feature. I hope that works for you =)