Skip to content

Commit 589847a

Browse files
gmartinaqarlosalberto
authored andcommitted
Squashed commit of the following:
commit 9f0c21c Author: Gustavo Martin <gustavo.martin.alcalde@gmail.com> Date: Sat Dec 13 08:48:39 2025 +0100 update dependencies: align semver, xml2js, and json5 versions commit 23338e2 Author: Gustavo Martin <gustavo.martin.alcalde@gmail.com> Date: Sat Dec 13 08:44:02 2025 +0100 moved icons to auto_package commit 82558b3 Author: Gustavo Martin <gustavo.martin.alcalde@gmail.com> Date: Sat Dec 13 07:31:29 2025 +0100 fix after dev pull commit eb48a41 Merge: 436ade2 63e925f Author: Gustavo Martin <gustavo.martin.alcalde@gmail.com> Date: Sat Dec 13 07:30:08 2025 +0100 Merge branch 'dev' into feature/add-icons commit 436ade2 Author: Gustavo Martin <gustavo.martin.alcalde@gmail.com> Date: Sat Dec 13 07:25:19 2025 +0100 remove icon theme. Now icons override default icon theme commit fe561d2 Author: Gustavo Martin <gustavo.martin.alcalde@gmail.com> Date: Sun Nov 9 10:00:33 2025 +0100 add missing newline at end of file in Comander class commit f086639 Author: Gustavo Martin <gustavo.martin.alcalde@gmail.com> Date: Sun Nov 9 09:59:03 2025 +0100 remove file icon enable/disable commands from Comander commit f46728a Author: Gustavo Martin <gustavo.martin.alcalde@gmail.com> Date: Sun Nov 9 09:54:57 2025 +0100 enable TerosHDL file icons by default commit 0f66523 Author: Gustavo Martin <gustavo.martin.alcalde@gmail.com> Date: Sun Nov 9 09:49:47 2025 +0100 add file icon support and commands to enable/disable icons
1 parent 63e925f commit 589847a

5 files changed

Lines changed: 75 additions & 154 deletions

File tree

auto_package/language.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,27 @@
33
configuration: "./configs/vhdl.configuration.json"
44
snippets: "./snippets/vhdl/vhdl.json"
55
aliases: ["VHDL", "vhdl"]
6+
icon:
7+
light: "./resources/icon/light/vhdl.svg"
8+
dark: "./resources/icon/dark/vhdl.svg"
69

710
- id: "verilog"
811
extensions: [".v", ".vh", ".vl"]
912
configuration: "./configs/verilog.configuration.json"
1013
snippets: "./snippets/verilog/verilog.json"
1114
aliases: ["Verilog", "verilog"]
15+
icon:
16+
light: "./resources/icon/light/verilog.svg"
17+
dark: "./resources/icon/dark/verilog.svg"
1218

1319
- id: "systemverilog"
1420
extensions: [".sv", ".svh", ".SV"]
1521
configuration: "./configs/systemverilog.configuration.json"
1622
snippets: "./snippets/systemverilog/systemverilog.json"
1723
aliases: ["System Verilog", "systemverilog"]
24+
icon:
25+
light: "./resources/icon/light/systemverilog.svg"
26+
dark: "./resources/icon/dark/systemverilog.svg"
1827

1928
- id: "vcd"
2029
extensions: [".vcd"]
@@ -33,26 +42,41 @@
3342
configuration: "./configs/tcl.configuration.json"
3443
snippets: "./snippets/tcl/tcl.json"
3544
aliases: ["TCL", "tcl"]
45+
icon:
46+
light: "./resources/icon/light/tcl.svg"
47+
dark: "./resources/icon/dark/tcl.svg"
3648

3749
- id: "ucf"
3850
extensions: [".ucf"]
3951
configuration: "./configs/ucfconstraints.configuration.json"
4052
aliases: ["vivado ucf", "ucf constraints"]
53+
icon:
54+
light: "./resources/icon/light/ucf.svg"
55+
dark: "./resources/icon/dark/ucf.svg"
4156

4257
- id: "xdc"
4358
extensions: [".xdc", ".sdc"]
4459
configuration: "./configs/xdcconstraints.configuration.json"
4560
snippets: "./snippets/xdc/xdc.json"
4661
aliases: ["vivado xdc", "xdc constraints"]
62+
icon:
63+
light: "./resources/icon/light/xdc.svg"
64+
dark: "./resources/icon/dark/xdc.svg"
4765

4866
- id: "ldc"
4967
extensions: [".ldc", ".pdc"]
5068
configuration: "./configs/xdcconstraints.configuration.json"
5169
snippets: "./snippets/xdc/xdc.json"
5270
aliases: ["lattice constraints"]
71+
icon:
72+
light: "./resources/icon/light/xdc.svg"
73+
dark: "./resources/icon/dark/xdc.svg"
5374

5475
- id: "TL-Verilog"
5576
extensions: [".tlv"]
5677
configuration: "./configs/tlverilog.configuration.json"
5778
snippets: "./snippets/tlverilog/tlverilog.json"
58-
aliases: ["TL-Verilog", "tlv", "Transactional-Level Verilog"]
79+
aliases: ["TL-Verilog", "tlv", "Transactional-Level Verilog"]
80+
icon:
81+
light: "./resources/icon/light/verilog.svg"
82+
dark: "./resources/icon/dark/verilog.svg"

auto_package/templates/dependencie.nj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
"netlistsvg": "https://github.com/TerosTechnology/netlistsvg.git#hierarchy",
88
"open": "8.3.0",
99
"proper-lockfile": "4.1.1",
10-
"semver": "7.3.5",
10+
"semver": "^7.6.3",
1111
"shelljs": "^0.8.3",
1212
"tmp": "0.2.1",
1313
"vscode-languageclient": "^9.0.1",
14-
"xml2js": "0.4.23",
14+
"xml2js": "^0.6.2",
1515
"nunjucks": "^3.2.0",
1616
"@types/nunjucks": "^3.1.4",
1717
"tree-kill": "1.2.2",
@@ -29,7 +29,7 @@
2929
"fast-xml-parser": "4.3.2",
3030
"jest-html-reporter": "^3.7.0",
3131
"js-yaml": "^4.1.0",
32-
"json5": "2.1.3",
32+
"json5": "^2.2.3",
3333
"lodash": "^4.17.21",
3434
"onml": "2.1.0",
3535
"pyodide": "0.24.1",

auto_package/templates/language_and_snippet.nj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@
1313
{%- if "configuration" in language %}
1414
"configuration": "{{language["configuration"]}}",
1515
{%- endif %}
16-
"extensions": {{language["extensions"] | replace("'", '"')}}
16+
"extensions": {{language["extensions"] | replace("'", '"')}}{%- if "icon" in language %},
17+
"icon": {
18+
"light": "{{language["icon"]["light"]}}",
19+
"dark": "{{language["icon"]["dark"]}}"
20+
}
21+
{%- endif %}
1722
}
1823
{% set ns.counter = ns.counter + 1 %}
1924
{%- endfor %}

package.json

Lines changed: 41 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,6 @@
3838
},
3939

4040
"contributes": {
41-
"iconThemes": [
42-
{
43-
"id": "teroshdl-icons",
44-
"label": "TerosHDL File Icons",
45-
"path": "./resources/icon/teroshdl-icon-theme.json"
46-
}
47-
],
4841
"viewsContainers": {
4942
"activitybar": [
5043
{
@@ -784,21 +777,33 @@
784777
"id": "vhdl",
785778
"aliases": ["VHDL", "vhdl"],
786779
"configuration": "./configs/vhdl.configuration.json",
787-
"extensions": [".vhd", ".vho", ".vhdl", ".vhd"]
780+
"extensions": [".vhd", ".vho", ".vhdl", ".vhd"],
781+
"icon": {
782+
"light": "./resources/icon/light/vhdl.svg",
783+
"dark": "./resources/icon/dark/vhdl.svg"
784+
}
788785
}
789786

790787
,{
791788
"id": "verilog",
792789
"aliases": ["Verilog", "verilog"],
793790
"configuration": "./configs/verilog.configuration.json",
794-
"extensions": [".v", ".vh", ".vl"]
791+
"extensions": [".v", ".vh", ".vl"],
792+
"icon": {
793+
"light": "./resources/icon/light/verilog.svg",
794+
"dark": "./resources/icon/dark/verilog.svg"
795+
}
795796
}
796797

797798
,{
798799
"id": "systemverilog",
799800
"aliases": ["System Verilog", "systemverilog"],
800801
"configuration": "./configs/systemverilog.configuration.json",
801-
"extensions": [".sv", ".svh", ".SV"]
802+
"extensions": [".sv", ".svh", ".SV"],
803+
"icon": {
804+
"light": "./resources/icon/light/systemverilog.svg",
805+
"dark": "./resources/icon/dark/systemverilog.svg"
806+
}
802807
}
803808

804809
,{
@@ -825,35 +830,55 @@
825830
"id": "tcl",
826831
"aliases": ["TCL", "tcl"],
827832
"configuration": "./configs/tcl.configuration.json",
828-
"extensions": [".tcl", ".pro"]
833+
"extensions": [".tcl", ".pro"],
834+
"icon": {
835+
"light": "./resources/icon/light/tcl.svg",
836+
"dark": "./resources/icon/dark/tcl.svg"
837+
}
829838
}
830839

831840
,{
832841
"id": "ucf",
833842
"aliases": ["vivado ucf", "ucf constraints"],
834843
"configuration": "./configs/ucfconstraints.configuration.json",
835-
"extensions": [".ucf"]
844+
"extensions": [".ucf"],
845+
"icon": {
846+
"light": "./resources/icon/light/ucf.svg",
847+
"dark": "./resources/icon/dark/ucf.svg"
848+
}
836849
}
837850

838851
,{
839852
"id": "xdc",
840853
"aliases": ["vivado xdc", "xdc constraints"],
841854
"configuration": "./configs/xdcconstraints.configuration.json",
842-
"extensions": [".xdc", ".sdc"]
855+
"extensions": [".xdc", ".sdc"],
856+
"icon": {
857+
"light": "./resources/icon/light/xdc.svg",
858+
"dark": "./resources/icon/dark/xdc.svg"
859+
}
843860
}
844861

845862
,{
846863
"id": "ldc",
847864
"aliases": ["lattice constraints"],
848865
"configuration": "./configs/xdcconstraints.configuration.json",
849-
"extensions": [".ldc", ".pdc"]
866+
"extensions": [".ldc", ".pdc"],
867+
"icon": {
868+
"light": "./resources/icon/light/xdc.svg",
869+
"dark": "./resources/icon/dark/xdc.svg"
870+
}
850871
}
851872

852873
,{
853874
"id": "TL-Verilog",
854875
"aliases": ["TL-Verilog", "tlv", "Transactional-Level Verilog"],
855876
"configuration": "./configs/tlverilog.configuration.json",
856-
"extensions": [".tlv"]
877+
"extensions": [".tlv"],
878+
"icon": {
879+
"light": "./resources/icon/light/verilog.svg",
880+
"dark": "./resources/icon/dark/verilog.svg"
881+
}
857882
}
858883

859884
],
@@ -899,18 +924,7 @@
899924
"mac": "command+delete",
900925
"when": "editorTextFocus"
901926
}
902-
],
903-
904-
"configuration": {
905-
"title": "TerosHDL",
906-
"properties": {
907-
"teroshdl.fileIcons.enabled": {
908-
"type": "boolean",
909-
"default": true,
910-
"markdownDescription": "Enable TerosHDL file icons. To apply changes:\n1. Open Command Palette (Ctrl+Shift+P)\n2. Type 'File Icon Theme'\n3. Select 'TerosHDL File Icons' to enable or 'None' to disable"
911-
}
912-
}
913-
}
927+
]
914928
},
915929

916930
"scripts": {

resources/icon/teroshdl-icon-theme.json

Lines changed: 0 additions & 122 deletions
This file was deleted.

0 commit comments

Comments
 (0)