Initial work on Arc tree view (#11008)

* Initial work on Arc tree view

* finish my thoughts
This commit is contained in:
Charles Gagnon
2020-06-18 16:50:31 -07:00
committed by GitHub
parent 935733d23c
commit 88fce764d3
23 changed files with 464 additions and 77 deletions

View File

@@ -14,7 +14,8 @@
"activationEvents": [
"onCommand:arc.manageArcController",
"onCommand:arc.manageMiaa",
"onCommand:arc.managePostgres"
"onCommand:arc.managePostgres",
"onView:azureArc"
],
"repository": {
"type": "git",
@@ -22,6 +23,14 @@
},
"main": "./out/extension",
"contributes": {
"dataExplorer": {
"azureArc": [
{
"id": "azureArc",
"name": "%arc.view.title%"
}
]
},
"commands": [
{
"command": "arc.manageArcController",
@@ -34,6 +43,19 @@
{
"command": "arc.managePostgres",
"title": "%arc.managePostgres%"
},
{
"command": "arc.openDashboard",
"title": "%arc.openDashboard%"
},
{
"command": "arc.addController",
"title": "%command.addController.title%",
"icon": "$(add)"
},
{
"command": "arc.removeController",
"title": "%command.removeController.title%"
}
],
"menus": {
@@ -49,6 +71,33 @@
{
"command": "arc.managePostgres",
"when": "false"
},
{
"command": "arc.openDashboard",
"when": "false"
},
{
"command": "arc.removeController",
"when": "false"
}
],
"view/title": [
{
"command": "arc.addController",
"when": "view == azureArc",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "arc.openDashboard",
"when": "view == azureArc && viewItem != loading",
"group": "navigation@1"
},
{
"command": "arc.removeController",
"when": "view == azureArc && viewItem == dataControllers",
"group": "navigation@2"
}
]
},