From dc78f841be9bef827ff51dd40ce940de83abf77f Mon Sep 17 00:00:00 2001
From: groupguanfang <1203970284@qq.com>
Date: Tue, 23 Sep 2025 14:07:36 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20add=20`.ets`=E3=80=81`.d.ets`=20icons?=
=?UTF-8?q?=20and=20remove=20`.ets`=E3=80=81`.d.ets`=20from=20typescript?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
icons/ets-def.svg | 4 ++++
icons/ets.svg | 3 +++
material-colors.yml | 2 ++
src/core/icons/fileIcons.ts | 6 +++++-
src/core/icons/languageIcons.ts | 3 ++-
5 files changed, 16 insertions(+), 2 deletions(-)
create mode 100644 icons/ets-def.svg
create mode 100644 icons/ets.svg
diff --git a/icons/ets-def.svg b/icons/ets-def.svg
new file mode 100644
index 0000000000..427ec4ac20
--- /dev/null
+++ b/icons/ets-def.svg
@@ -0,0 +1,4 @@
+
diff --git a/icons/ets.svg b/icons/ets.svg
new file mode 100644
index 0000000000..fd13003cae
--- /dev/null
+++ b/icons/ets.svg
@@ -0,0 +1,3 @@
+
diff --git a/material-colors.yml b/material-colors.yml
index 5d52a1bad5..09d02ce032 100644
--- a/material-colors.yml
+++ b/material-colors.yml
@@ -280,3 +280,5 @@ exclude:
- 'icons/vue.svg'
- 'icons/vue-config.svg'
- 'icons/vuex-store.svg'
+ - 'icons/ets-def.svg'
+ - 'icons/ets.svg'
diff --git a/src/core/icons/fileIcons.ts b/src/core/icons/fileIcons.ts
index ba32e3ab54..4360db4dba 100644
--- a/src/core/icons/fileIcons.ts
+++ b/src/core/icons/fileIcons.ts
@@ -334,7 +334,11 @@ export const fileIcons: FileIcons = {
},
{
name: 'typescript-def',
- fileExtensions: ['d.ts', 'd.cts', 'd.mts', 'd.ets'],
+ fileExtensions: ['d.ts', 'd.cts', 'd.mts'],
+ },
+ {
+ name: 'ets-def',
+ fileExtensions: ['d.ets'],
},
{ name: 'markdoc', fileExtensions: ['mdoc', 'markdoc', 'markdoc.md'] },
{
diff --git a/src/core/icons/languageIcons.ts b/src/core/icons/languageIcons.ts
index dbefbf3e40..f8e0282003 100644
--- a/src/core/icons/languageIcons.ts
+++ b/src/core/icons/languageIcons.ts
@@ -28,7 +28,8 @@ export const languageIcons: LanguageIcon[] = [
{ name: 'python', ids: ['python'] },
{ name: 'mojo', ids: ['mojo'] },
{ name: 'javascript', ids: ['javascript'] },
- { name: 'typescript', ids: ['typescript', 'ets'] },
+ { name: 'typescript', ids: ['typescript'] },
+ { name: 'ets', ids: ['ets', 'ArkTS'] },
{ name: 'scala', ids: ['scala'] },
{ name: 'handlebars', ids: ['handlebars'] },
{ name: 'perl', ids: ['perl', 'perl6'] },