ymotongpoo / vsc-licenser

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

licenser.author setting is ignored when inserting header #135

Open joshuar opened 1 year ago

joshuar commented 1 year ago

Please make sure to use this template to report issue. Any issue report that does not follow this template will be ignored.

Runtime environment

You can confirm installed extensions by calling "Extensions: Show Installed Extensions", or just click extensions tab in the case you are using VS Code 1.3+.

Behaviors

Expected behavior

licenser.author is used when generating license file and inserting headers.

Actual behavior

My login username is being used instead. This appears to be the same problem as observed in #118. Not sure if some regression has crept in with some change in recent VSCode releases?

Steps to reproduce the issue

  1. Install the plugin
  2. Configure licenser.author and licenser.license workspace setting
  3. From command pallet > licenser: Insert license header

Thanks for the great extension! Very helpful!

jnooree commented 1 year ago

Just to note, I'm suffering from the same issue.

djplaner commented 1 year ago

FYI, I had the same problem (Windows 10) using the same steps above.

However, I found when I "turn it off and on again" it worked. i.e. closed the window in which I'd carried out the steps and opened the code afresh in a new window licenser.author was being recognised correctly.

jnooree commented 1 year ago

Thank you so much for your help! I really appreciate it. The solution you provided worked perfectly for my user settings, but unfortunately I'm still having trouble getting the workspace settings to work.

Any further suggestions or insights you might have would be greatly appreciated. Thank you again!