From bd3b0100ae46af074ccd135ba73ac4165976b7ae Mon Sep 17 00:00:00 2001 From: Christian Mutti Date: Thu, 20 Jun 2019 08:03:03 -0300 Subject: [PATCH] Change icon name to underscore notation and removed languageIcons entry. Changing from fileExtensions to fileNames the same behaviour is achieved. --- icons/{go-mod.svg => go_mod.svg} | 0 src/icons/fileIcons.ts | 2 +- src/icons/languageIcons.ts | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) rename icons/{go-mod.svg => go_mod.svg} (100%) diff --git a/icons/go-mod.svg b/icons/go_mod.svg similarity index 100% rename from icons/go-mod.svg rename to icons/go_mod.svg diff --git a/src/icons/fileIcons.ts b/src/icons/fileIcons.ts index 7a9a54197f..78b99fd5ef 100644 --- a/src/icons/fileIcons.ts +++ b/src/icons/fileIcons.ts @@ -206,7 +206,7 @@ export const fileIcons: FileIcons = { { name: 'cpp', fileExtensions: ['cc', 'cpp', 'mm', 'cxx'] }, { name: 'hpp', fileExtensions: ['hpp'] }, { name: 'go', fileExtensions: ['go'] }, - { name: 'go-mod', fileExtensions: ['go.mod', 'go.sum'] }, + { name: 'go_mod', fileNames: ['go.mod', 'go.sum'] }, { name: 'python', fileExtensions: ['py'] }, { name: 'python-misc', diff --git a/src/icons/languageIcons.ts b/src/icons/languageIcons.ts index 97d0507ceb..0988744cd8 100644 --- a/src/icons/languageIcons.ts +++ b/src/icons/languageIcons.ts @@ -67,7 +67,6 @@ export const languageIcons: LanguageIcon[] = [ { icon: { name: 'processing' }, ids: ['processing'] }, { icon: { name: 'hcl' }, ids: ['hcl'] }, { icon: { name: 'go' }, ids: ['go'] }, - { icon: { name: 'go-mod' }, ids: ['go.sum', 'go.mod'] }, { icon: { name: 'go_gopher' }, ids: [] }, { icon: { name: 'nodejs_alt' }, ids: [] }, { icon: { name: 'django' }, ids: ['django-html', 'django-txt'] },