data workspace extension batch 2 (#12208)

* work in progress

* load projects in view and test cases

* update scope

* make the sql proj menu available in workspace view

* add extension unit test

* address comments

* fix errors
This commit is contained in:
Alan Ren
2020-09-10 17:17:57 -07:00
committed by GitHub
parent cd8102535b
commit 7df132b307
20 changed files with 645 additions and 32 deletions

View File

@@ -20,20 +20,41 @@
"type": "git",
"url": "https://github.com/Microsoft/azuredatastudio.git"
},
"extensionDependencies": [
"microsoft.mssql"
],
"extensionDependencies": [],
"contributes": {
"configuration": [
{
"title": "Projects",
"properties": {
"dataworkspace.projects": {
"type": "array",
"default": [],
"description": ""
}
}
}
],
"commands": [
{
"command": "projects.addProject",
"title": "%add-project-command%",
"category": "",
"icon": "$(add)"
},
{
"command": "dataworkspace.refresh",
"title": "%refresh-workspace-command%",
"category": "",
"icon": "$(refresh)"
}
],
"menus": {
"view/title": [
{
"command": "dataworkspace.refresh",
"when": "view == dataworkspace.views.main",
"group": "navigation"
},
{
"command": "projects.addProject",
"when": "view == dataworkspace.views.main",
@@ -44,6 +65,10 @@
{
"command": "projects.addProject",
"when": "false"
},
{
"command": "dataworkspace.refresh",
"when": "false"
}
]
},