Skip to content

Commit 495175a

Browse files
authored
feat(tree-view): add icons for connect and playground panel actions VSCODE-179 (#240)
1 parent 64b2aba commit 495175a

File tree

5 files changed

+40
-7
lines changed

5 files changed

+40
-7
lines changed

images/dark/add.svg

Lines changed: 3 additions & 0 deletions
Loading

images/dark/refresh.svg

Lines changed: 4 additions & 0 deletions
Loading

images/light/add.svg

Lines changed: 3 additions & 0 deletions
Loading

images/light/refresh.svg

Lines changed: 4 additions & 0 deletions
Loading

package.json

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,11 @@
198198
},
199199
{
200200
"command": "mdb.refreshPlaygroundsFromTreeView",
201-
"title": "Refresh"
201+
"title": "Refresh",
202+
"icon": {
203+
"light": "images/light/refresh.svg",
204+
"dark": "images/dark/refresh.svg"
205+
}
202206
},
203207
{
204208
"command": "mdb.createNewPlaygroundFromViewAction",
@@ -210,7 +214,11 @@
210214
},
211215
{
212216
"command": "mdb.createNewPlaygroundFromPlaygroundExplorer",
213-
"title": "Create MongoDB Playground"
217+
"title": "Create MongoDB Playground",
218+
"icon": {
219+
"light": "images/light/add.svg",
220+
"dark": "images/dark/add.svg"
221+
}
214222
},
215223
{
216224
"command": "mdb.changeActiveConnection",
@@ -240,16 +248,16 @@
240248
"command": "mdb.addConnection",
241249
"title": "Add MongoDB Connection",
242250
"icon": {
243-
"light": "images/light/plus-circle.svg",
244-
"dark": "images/dark/plus-circle.svg"
251+
"light": "images/light/add.svg",
252+
"dark": "images/dark/add.svg"
245253
}
246254
},
247255
{
248256
"command": "mdb.addConnectionWithURI",
249257
"title": "Add MongoDB Connection with Connection String...",
250258
"icon": {
251-
"light": "images/light/plus-circle.svg",
252-
"dark": "images/dark/plus-circle.svg"
259+
"light": "images/light/add.svg",
260+
"dark": "images/dark/add.svg"
253261
}
254262
},
255263
{
@@ -367,9 +375,20 @@
367375
"command": "mdb.createNewPlaygroundFromViewAction",
368376
"when": "view == mongoDBPlaygroundsExplorer"
369377
},
378+
{
379+
"command": "mdb.createNewPlaygroundFromPlaygroundExplorer",
380+
"when": "view == mongoDBPlaygroundsExplorer",
381+
"group": "navigation@1"
382+
},
370383
{
371384
"command": "mdb.refreshPlaygroundsFromTreeView",
372-
"when": "view == mongoDBPlaygroundsExplorer"
385+
"when": "view == mongoDBPlaygroundsExplorer",
386+
"group": "navigation@5"
387+
},
388+
{
389+
"command": "mdb.addConnection",
390+
"when": "view == mongoDBConnectionExplorer",
391+
"group": "navigation@1"
373392
},
374393
{
375394
"command": "mdb.addConnection",

0 commit comments

Comments
 (0)