Skip to content

Commit 429f93f

Browse files
Move submenu contribution
Signed-off-by: Sanjula Ganepola <[email protected]>
1 parent 06c7868 commit 429f93f

File tree

2 files changed

+22
-26
lines changed

2 files changed

+22
-26
lines changed

package.json

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1371,6 +1371,16 @@
13711371
"group": "navigation_notebook@1"
13721372
}
13731373
],
1374+
"vscode-db2i.customExampleDirectories": [
1375+
{
1376+
"command": "vscode-db2i.examples.add",
1377+
"group": "navigation@0"
1378+
},
1379+
{
1380+
"command": "vscode-db2i.examples.remove",
1381+
"group": "navigation@1"
1382+
}
1383+
],
13741384
"notebook/toolbar": [
13751385
{
13761386
"command": "vscode-db2i.notebook.exportAsHtml",
@@ -1388,7 +1398,7 @@
13881398
{
13891399
"id": "vscode-db2i.customExampleDirectories",
13901400
"label": "Custom Example Directories",
1391-
"icon": "$(sparkle)"
1401+
"icon": "$(folder-library)"
13921402
}
13931403
],
13941404
"keybindings": [
@@ -1511,18 +1521,6 @@
15111521
"contents": "🛠️ SELF Codes will appear here. You can set the SELF log level on specific jobs, or you can set the default for new jobs in the User Settings.\n\n[Set Default for New Jobs](command:vscode-db2i.jobManager.defaultSettings)\n\n[Learn about SELF](command:vscode-db2i.self.help)"
15121522
}
15131523
],
1514-
"vscode-db2i.customExampleDirectories": [
1515-
{
1516-
"command": "vscode-db2i.examples.add",
1517-
"group": "navigation@0",
1518-
"when": "view == exampleBrowser"
1519-
},
1520-
{
1521-
"command": "vscode-db2i.examples.remove",
1522-
"group": "navigation@1",
1523-
"when": "view == exampleBrowser"
1524-
}
1525-
],
15261524
"notebooks": [
15271525
{
15281526
"id": "db2i-notebook",

src/views/examples/contributes.json

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,7 @@
5555
{
5656
"id": "vscode-db2i.customExampleDirectories",
5757
"label": "Custom Example Directories",
58-
"icon": "$(sparkle)"
59-
}
60-
],
61-
"vscode-db2i.customExampleDirectories": [
62-
{
63-
"command": "vscode-db2i.examples.add",
64-
"group": "navigation@0",
65-
"when": "view == exampleBrowser"
66-
},
67-
{
68-
"command": "vscode-db2i.examples.remove",
69-
"group": "navigation@1",
70-
"when": "view == exampleBrowser"
58+
"icon": "$(folder-library)"
7159
}
7260
],
7361
"menus": {
@@ -104,6 +92,16 @@
10492
"when": "view == exampleBrowser && viewItem == example.custom",
10593
"group": "0_open"
10694
}
95+
],
96+
"vscode-db2i.customExampleDirectories": [
97+
{
98+
"command": "vscode-db2i.examples.add",
99+
"group": "navigation@0"
100+
},
101+
{
102+
"command": "vscode-db2i.examples.remove",
103+
"group": "navigation@1"
104+
}
107105
]
108106
},
109107
"configuration": [

0 commit comments

Comments
 (0)