KineticSnippet / AddItems

Extends the `vscode: New file` capabilities.
https://marketplace.visualstudio.com/items?itemName=kineticSnippet.add-items
GNU General Public License v3.0
2 stars 0 forks source link

Uncaught exceptions #12

Open theFish2171 opened 4 months ago

theFish2171 commented 4 months ago

The following error message is getting displayed when trying to create a new file while no folder is open.

image

The error is only thrown once, in the picture, it was thrown multiple times for the sake of it.

The error message is thrown by the following code:

https://github.com/KineticSnippet/AddItems/blob/f452d0bca2dd0b6e5c28fad7f228b33bbfa74f71/src/FileCreator/FileCreator.ts#L39

theFish2171 commented 4 months ago

This uncaught exception must be fixed by either catching it, and showing an infobox to the user, or by allowing the user to select the target folder.