ymotongpoo / vsc-licenser

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

Exclude .gitignore files and `.git` directory during apply to workspace #109

Closed JeremyJonas closed 3 years ago

JeremyJonas commented 3 years 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

When I run "Insert license headers to all files in workspace" it should not add headers to my .git directory files (eeeeek) and should also not apply to any files in .gitignore

Actual behavior

Running this destroyed my .git directory as it applied header to all files within .git (eeeeeeek). I realized this and stop it after a 30 seconds of running. This is very dangerous extension, luckily I would resolve my .git files manually and preserve my history of local changes.

Steps to reproduce the issue