From 7628a5c4c6eb447e41604de0efee1e816105619c Mon Sep 17 00:00:00 2001 From: Miguel Solorio Date: Wed, 11 Jan 2023 22:27:59 -0500 Subject: [PATCH] add support/ custom icon for test files (foo.test.js/ foo.test.ts) (Fixes #35) --- src/icons/files/js-test.svg | 3 +++ src/icons/files/ts-test.svg | 3 +++ src/symbol-icon-theme.json | 9 +++++++-- 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 src/icons/files/js-test.svg create mode 100644 src/icons/files/ts-test.svg diff --git a/src/icons/files/js-test.svg b/src/icons/files/js-test.svg new file mode 100644 index 0000000..70bc81a --- /dev/null +++ b/src/icons/files/js-test.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/icons/files/ts-test.svg b/src/icons/files/ts-test.svg new file mode 100644 index 0000000..8ac3723 --- /dev/null +++ b/src/icons/files/ts-test.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/symbol-icon-theme.json b/src/symbol-icon-theme.json index 3eca8d7..d52c9da 100644 --- a/src/symbol-icon-theme.json +++ b/src/symbol-icon-theme.json @@ -56,7 +56,9 @@ "svg": { "iconPath": "./icons/files/svg.svg" }, "vue": { "iconPath": "./icons/files/vue.svg" }, "js": { "iconPath": "./icons/files/js.svg" }, + "js-test": { "iconPath": "./icons/files/js-test.svg" }, "ts": { "iconPath": "./icons/files/ts.svg" }, + "ts-test": { "iconPath": "./icons/files/ts-test.svg" }, "dts": { "iconPath": "./icons/files/dts.svg" }, "robot": { "iconPath": "./icons/files/robot.svg" }, "text": { "iconPath": "./icons/files/text.svg" }, @@ -133,6 +135,8 @@ "supabase": { "iconPath": "./icons/files/supabase.svg" } }, "fileExtensions": { + "test.js": "js-test", + "test.ts": "ts-test", "jenkinsfile": "jenkins", "jenkins": "jenkins", "tsconfig.json": "tsconfig", @@ -376,6 +380,8 @@ "toml": "gear" }, "fileNames": { + "test.js": "js-test", + "test.ts": "ts-test", "gulpfile.js": "gulp", "gulpfile.mjs": "gulp", "gulpfile.ts": "gulp", @@ -580,7 +586,6 @@ ".vscodeignore": "ignore", ".hugo_build.lock": "hugo", "robots.txt": "text", - "test.js": "code-orange", "yarn.lock": "yarn", "yarn": "yarn", ".direnv": "gear", @@ -644,7 +649,7 @@ "tsconfig.eslint.json": "tsconfig", "tsconfig.lib.json": "tsconfig", "tsconfig.node.json": "tsconfig", - "tsconfig.test.json": "tsconfig", + "tsconfig.test.json": "ts-test", "tsconfig.e2e.json": "tsconfig", "tsconfig.web.json": "tsconfig", "tsconfig.webworker.json": "tsconfig",