ialexivy / vscode-angular2-files

vscode extension generating angular files with angular cli
MIT License
61 stars 36 forks source link

Added feature: configuration options to allow hiding each menu item #22

Closed roknow closed 6 years ago

roknow commented 6 years ago

Please consider this pull-request...

I removed the ".type.ts" extension from the "fileName" field of the commands to prevent confusion when presented with the input prompt for a name. Initially upon using this extensions it was unclear it was expecting only the name portion and I wound up with a directory called "my-name.coponent.ts" with subsequent files name things like "my-name.coponent.ts.coponent.ts".

I've also add configuration options that enable end-users to hide specific menu options they don't want to see... The configuration options as follows:

{
  "angular2-files.menu.class": false,
  "angular2-files.menu.component": true,
  "angular2-files.menu.directive": true,
  "angular2-files.menu.enum": false,
  "angular2-files.menu.interface": false,
  "angular2-files.menu.module": false,
  "angular2-files.menu.pipe": true,
  "angular2-files.menu.route": false,
  "angular2-files.menu.service": true
}

Lastly I added the *.vsix extension to .gitignore.

Thanks for the extension, it's a great time-saver!

ialexivy commented 6 years ago

@roknow , thank you for your contribution !