nuxtrdev / nuxtr-vscode

An extension offering commands and tools to make your experience with Nuxt more pleasant.
https://marketplace.visualstudio.com/items?itemName=Nuxtr.nuxtr-vscode
336 stars 13 forks source link

feat: normalize component file extension before creating file #153

Open citrus opened 2 months ago

citrus commented 2 months ago

๐Ÿ”— Linked issue / Discussion

This change removes the duplicated .vue extension when creating a component and using a name with an extension.

โ“ Type of change

๐Ÿ“š Description

When creating a new component named MyComponent.vue, Nuxtr would create a file named MyComponent.vue.vue. This PR normalizes the file name before creating the component, removing the duplicate extension.

๐Ÿ“ Checklist

citrus commented 2 months ago

Is this a useful PR?