Skip to content

Commit 2bac2a5

Browse files
vbfoxKrzysztof-Cieslak
authored andcommitted
Add icons & menus to paket files (#51)
1 parent 2520e9e commit 2bac2a5

File tree

5 files changed

+119
-2
lines changed

5 files changed

+119
-2
lines changed

release/images/install-dark.svg

Lines changed: 9 additions & 0 deletions
Loading

release/images/install-light.svg

Lines changed: 9 additions & 0 deletions
Loading

release/images/restore-dark.svg

Lines changed: 9 additions & 0 deletions
Loading

release/images/restore-light.svg

Lines changed: 9 additions & 0 deletions
Loading

release/package.json

Lines changed: 83 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@
4848
"title": "Paket: Init"
4949
},{
5050
"command": "paket.Install",
51-
"title": "Paket: Install"
51+
"title": "Paket: Install",
52+
"icon":
53+
{
54+
"light": "./images/install-light.svg",
55+
"dark": "./images/install-dark.svg"
56+
}
5257
},{
5358
"command": "paket.Update",
5459
"title": "Paket: Update"
@@ -57,7 +62,12 @@
5762
"title": "Paket: Outdated"
5863
},{
5964
"command": "paket.Restore",
60-
"title": "Paket: Restore"
65+
"title": "Paket: Restore",
66+
"icon":
67+
{
68+
"light": "./images/restore-light.svg",
69+
"dark": "./images/restore-dark.svg"
70+
}
6171
},{
6272
"command": "paket.AutoRestoreOn",
6373
"title": "Paket: AutoRestore On"
@@ -103,6 +113,77 @@
103113
"command": "paket.UpdatePaketToPrerelease",
104114
"title": "Paket: Use Paket prerelease"
105115
}],
116+
"menus": {
117+
"editor/title": [
118+
{
119+
"command":"paket.Restore",
120+
"when": "editorLangId == 'paket-references'",
121+
"group": "navigation"
122+
},
123+
{
124+
"command":"paket.Restore",
125+
"when": "editorLangId == 'paket-dependencies'",
126+
"group": "navigation"
127+
},
128+
{
129+
"command":"paket.Install",
130+
"when": "editorLangId == 'paket-references'",
131+
"group": "navigation"
132+
},
133+
{
134+
"command":"paket.Install",
135+
"when": "editorLangId == 'paket-dependencies'",
136+
"group": "navigation"
137+
}
138+
],
139+
"editor/context": [
140+
{
141+
"command":"paket.Restore",
142+
"when": "editorLangId == 'paket-references'",
143+
"group": "21_paketMain"
144+
},
145+
{
146+
"command":"paket.Restore",
147+
"when": "editorLangId == 'paket-dependencies'",
148+
"group": "21_paketMain"
149+
},
150+
{
151+
"command":"paket.Install",
152+
"when": "editorLangId == 'paket-references'",
153+
"group": "21_paketMain"
154+
},
155+
{
156+
"command":"paket.Install",
157+
"when": "editorLangId == 'paket-dependencies'",
158+
"group": "21_paketMain"
159+
},
160+
{
161+
"command":"paket.Add",
162+
"when": "editorLangId == 'paket-dependencies'",
163+
"group": "22_paketEditFile"
164+
},
165+
{
166+
"command":"paket.UpdatePackage",
167+
"when": "editorLangId == 'paket-dependencies'",
168+
"group": "22_paketEditFile"
169+
},
170+
{
171+
"command":"paket.RemovePackage",
172+
"when": "editorLangId == 'paket-dependencies'",
173+
"group": "22_paketEditFile"
174+
},
175+
{
176+
"command":"paket.Why",
177+
"when": "editorLangId == 'paket-dependencies'",
178+
"group": "23_paketOther"
179+
},
180+
{
181+
"command":"paket.GenerateLoadScripts",
182+
"when": "editorLangId == 'paket-dependencies'",
183+
"group": "23_paketOther"
184+
}
185+
]
186+
},
106187
"outputChannels": [
107188
"Paket"
108189
],

0 commit comments

Comments
 (0)