Data explorer/context menu initial (#6264)

* fixed context for data explorer

* added more files

* initial servers and database context menu actions finished

* added all actions for servers and databases with correct conditions

* added nodetype and nodelabel for subtype actions

* added nodeinfo logic to oe shim

* fixed context for cms

* added all scripting actions to data explorer

* review comments

* fix import

* fix correct context key

* removed unused import

* separate PR for commands and menus added

* rename mssql context menu nodes

* remove command id constants
This commit is contained in:
Aditya Bist
2019-07-03 16:03:09 -07:00
committed by GitHub
parent 10b066d300
commit ecfcb92a89
19 changed files with 276 additions and 36 deletions

View File

@@ -5,7 +5,7 @@
'use strict';
import { AzureResource } from 'azdata';
import { AzureResource, ExtensionNodeType } from 'azdata';
import { TreeItem, TreeItemCollapsibleState, ExtensionContext } from 'vscode';
import { TokenCredentials } from 'ms-rest';
import * as nls from 'vscode-nls';
@@ -72,7 +72,8 @@ export class AzureResourceDatabaseTreeDataProvider implements azureResource.IAzu
saveProfile: false,
options: {}
},
childProvider: 'MSSQL'
childProvider: 'MSSQL',
type: ExtensionNodeType.Database
}
});
}

View File

@@ -5,7 +5,7 @@
'use strict';
import { AzureResource } from 'azdata';
import { AzureResource, ExtensionNodeType } from 'azdata';
import { TreeItem, TreeItemCollapsibleState, ExtensionContext } from 'vscode';
import { TokenCredentials } from 'ms-rest';
import * as nls from 'vscode-nls';
@@ -72,7 +72,8 @@ export class AzureResourceDatabaseServerTreeDataProvider implements azureResourc
saveProfile: false,
options: {}
},
childProvider: 'MSSQL'
childProvider: 'MSSQL',
type: ExtensionNodeType.Server
}
});
}