ymotongpoo / vsc-licenser

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

Error When Insert License Header to Multiple Files #139

Open githubplf opened 1 year ago

githubplf commented 1 year ago

Runtime environment

Behaviors

Expected behavior

Copyright header is inserted at top of all files in the selected folder.

Actual behavior

Nothing happens. Runtime status shows repeated error "Cannot read properties of undefined (reading 'document')".

Steps to reproduce the issue

  1. Select folder context menu in project.
  2. Select menu item licenser: insert license header to contents.

When attempting to apply to a single file, the error is displayed in alert dialog. The license is only applied if the file is open and currently active/selected.