ymotongpoo / vsc-licenser

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

implements customHeaderFile and customTermsAndConditionsFile #78

Closed andrew-schlackman closed 4 years ago

andrew-schlackman commented 4 years ago

Adds 2 new settings:

  1. customTermsAndConditionsFile: Path to a file containing a user-defined custom terms and conditions. Overrides Custom Terms And Conditions when present.
  2. customHeaderFile: Path to a file containing a user-defined custom header. Overrides Custom Header when present.

This allows users to put a custom header and/or terms and conditions in a file of their choice, instead of trying to fit it all into a single-line setting. I think this makes custom licenses easier to use and also mitigates #77

ymotongpoo commented 4 years ago

@andrew-schlackman Thank you for your contribution! I appreciate it. Could you do me another favor for this? It would be great if you could add simple explanations on each new features in README. Is it possible?

andrew-schlackman commented 4 years ago

I updated the README. Thanks for reviewing my PR.

ymotongpoo commented 4 years ago

@andrew-schlackman Thank you for your contribution!

mnesarco commented 3 years ago

Hi, I am trying to use this feature without succes: My .vscode/settings.json:

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

@mnesarco Hi, can you provide the required information for debugging in a new issue ticket following the template? Thanks!