mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-24 09:35:37 -05:00
Import project from database (#10326)
* Initial changes for Import database as new project * Functionally complete code * Initial changes for Import database as new project * Functionally complete code * Resolved conflicts with latest changes. Also did some code refactoring. * Addressed comments. Added unit tests. * Addressed comments * Moved ExtractTarget enum from azdata to mssql * Addressed comments * Fixed indentation in project templates
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
"activationEvents": [
|
||||
"onCommand:sqlDatabaseProjects.new",
|
||||
"onCommand:sqlDatabaseProjects.open",
|
||||
"onCommand:sqlDatabaseProjects.importDatabase",
|
||||
"workspaceContains:**/*.sqlproj"
|
||||
],
|
||||
"main": "./out/extension",
|
||||
@@ -107,6 +108,11 @@
|
||||
"command": "sqlDatabaseProjects.schemaCompare",
|
||||
"title": "%sqlDatabaseProjects.schemaCompare%",
|
||||
"category": "%sqlDatabaseProjects.displayName%"
|
||||
},
|
||||
{
|
||||
"command": "sqlDatabaseProjects.importDatabase",
|
||||
"title": "%sqlDatabaseProjects.importDatabase%",
|
||||
"category": "%sqlDatabaseProjects.displayName%"
|
||||
}
|
||||
],
|
||||
"menus": {
|
||||
@@ -154,7 +160,8 @@
|
||||
"when": "false"
|
||||
},
|
||||
{
|
||||
"command": "sqlDatabaseProjects.import"
|
||||
"command": "sqlDatabaseProjects.import",
|
||||
"when": "false"
|
||||
},
|
||||
{
|
||||
"command": "sqlDatabaseProjects.properties",
|
||||
@@ -163,6 +170,9 @@
|
||||
{
|
||||
"command": "sqlDatabaseProjects.schemaCompare",
|
||||
"when": "false"
|
||||
},
|
||||
{
|
||||
"command": "sqlDatabaseProjects.importDatabase"
|
||||
}
|
||||
],
|
||||
"view/item/context": [
|
||||
@@ -226,6 +236,13 @@
|
||||
"when": "view == sqlDatabaseProjectsView",
|
||||
"group": "9_dbProjectsLast"
|
||||
}
|
||||
],
|
||||
"objectExplorer/item/context": [
|
||||
{
|
||||
"command": "sqlDatabaseProjects.importDatabase",
|
||||
"when": "connectionProvider == MSSQL && nodeType && nodeType == Database && mssql:engineedition != 11",
|
||||
"group": "export"
|
||||
}
|
||||
]
|
||||
},
|
||||
"views": {
|
||||
|
||||
Reference in New Issue
Block a user