Fix #4460: Add dacfx wizard to server and database folder context menus (#4989)

* add dacfx wizard to server and database folder context  menus

* update object explorer test
This commit is contained in:
kisantia
2019-05-10 12:03:26 -07:00
committed by GitHub
parent 5260afc15d
commit 5a48fd80cd
2 changed files with 12 additions and 2 deletions

View File

@@ -37,6 +37,16 @@
"command": "dacFx.start",
"when": "connectionProvider == MSSQL && nodeType && nodeType == Database",
"group": "export"
},
{
"command": "dacFx.start",
"when": "connectionProvider == MSSQL && nodeType && nodeType == Server",
"group": "export"
},
{
"command": "dacFx.start",
"when": "connectionProvider == MSSQL && nodeType && nodeType == Folder && nodeLabel == 'Databases'",
"group": "export"
}
]
}

View File

@@ -45,9 +45,9 @@ if (context.RunTest) {
let expectedActions;
if (process.platform === 'win32') {
expectedActions = ['Manage', 'New Query', 'Disconnect', 'Delete Connection', 'Refresh', 'New Notebook', 'Launch Profiler', 'Properties'];
expectedActions = ['Manage', 'New Query', 'Disconnect', 'Delete Connection', 'Refresh', 'New Notebook', 'Data-tier Application wizard', 'Launch Profiler', 'Properties'];
} else {
expectedActions = ['Manage', 'New Query', 'Disconnect', 'Delete Connection', 'Refresh', 'New Notebook', 'Launch Profiler'];
expectedActions = ['Manage', 'New Query', 'Disconnect', 'Delete Connection', 'Refresh', 'New Notebook', 'Data-tier Application wizard', 'Launch Profiler'];
}
const expectedString = expectedActions.join(',');