ymotongpoo / vsc-licenser

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

License is getting in front of the php start tag. #14

Closed jens1o closed 7 years ago

jens1o commented 7 years ago

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+. Yep.

Behaviors

Expected behavior

License is entered after the php start tag

Actual behavior

License get's entered in front of the php start tag.

image

Steps to reproduce the issue

  1. Create a php file and write the php start tag <?php
  2. Let the license gets inserted
  3. Done!
ymotongpoo commented 7 years ago

This fix only supports the case where <?php is in the first line of the file. If you feel this fix doesn't work, please reopen this issue with more use cases.

jens1o commented 7 years ago

I think this will cover the most cases. Thank you!