Fix angular icon mapper
Purpose
Fixes icons for non-angular files that only contain the component part.
-
component.ts→ TypeScript -
foo.component.ts→ Angular Component
getIconForFile will accept the full file name.
We match 4 types of filenames:
- Full match: something like
angular-cli.json← Angular config, not a regular JSON file - 3 level deep match:
<something-here>.sln.dotsettings.user - 2 level deep match:
<something-here>.component.ts← produces Angular component, not a TS file - Base file extension:
component.ts← produces TS file, not an Angular component
Fixes gitlab#478102 (closed).
Edited by Scott de Jonge