Files
azuredatastudio/extensions/azurecore/package.json
Alan Ren 54c2fe6899 remove duplicate code (#20664)
* remove dupe code

* fix step name

* fix errors

* comment out arc

* fix timeout issue

* fix typo

* update name
2022-09-26 17:48:59 -07:00

373 lines
11 KiB
JSON

{
"name": "azurecore",
"displayName": "%azure.displayName%",
"description": "%azure.description%",
"version": "0.1.0",
"publisher": "Microsoft",
"preview": true,
"engines": {
"vscode": "^1.30.1",
"azdata": "*"
},
"activationEvents": [
"*"
],
"enableProposedApi": true,
"main": "./out/extension",
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/azuredatastudio.git"
},
"capabilities": {
"virtualWorkspaces": false,
"untrustedWorkspaces": {
"supported": true
}
},
"contributes": {
"resourceViewResources": [
{
"id": "azure-resources",
"name": "%azure.resource.view.title%",
"icon": "./resources/azure.svg"
}
],
"configuration": [
{
"type": "object",
"title": "%azure.resource.config.title%",
"properties": {
"azure.resource.config.filter": {
"type": "array",
"default": null,
"description": "%azure.resource.config.filter.description%"
},
"azure.tenant.config.filter": {
"type": "array",
"default": [],
"description": "%azure.tenant.config.filter.description%"
}
}
},
{
"type": "object",
"title": "%config.azureAccountConfigurationSection%",
"properties": {
"accounts.azure.cloud.enablePublicCloud": {
"type": "boolean",
"default": true,
"description": "%config.enablePublicCloudDescription%"
},
"accounts.azure.cloud.enableUsGovCloud": {
"type": "boolean",
"default": false,
"description": "%config.enableUsGovCloudDescription%"
},
"accounts.azure.cloud.enableUsNatCloud": {
"type": "boolean",
"default": false,
"description": "%config.enableUsNatCloudDescription%"
},
"accounts.azure.cloud.enableGermanyCloud": {
"type": "boolean",
"default": false,
"description": "%config.enableGermanyCloudDescription%"
},
"accounts.azure.cloud.enableChinaCloud": {
"type": "boolean",
"default": false,
"description": "%config.enableChinaCloudDescription%"
}
}
},
{
"type": "object",
"title": "%config.azureAuthMethodConfigurationSection%",
"properties": {
"accounts.azure.auth.codeGrant": {
"type": "boolean",
"default": true,
"description": "%config.azureCodeGrantMethod%"
},
"accounts.azure.auth.deviceCode": {
"type": "boolean",
"default": false,
"description": "%config.azureDeviceCodeMethod%"
}
}
},
{
"type": "object",
"title": "Azure",
"properties": {
"azure.noSystemKeychain": {
"type": "boolean",
"default": true,
"description": "%config.noSystemKeychain%",
"when": "isLinux || isWeb"
},
"azure.piiLogging": {
"type": "boolean",
"default": false,
"description": "%config.piiLogging%"
},
"azure.loggingLevel": {
"type": "string",
"description": "%config.loggingLevel%",
"default": "Error",
"enum": [
"Off",
"Critical",
"Error",
"Warning",
"Information",
"Verbose",
"All"
]
}
}
}
],
"account-type": [
{
"id": "microsoft",
"icon": {
"light": "./resources/light/microsoft_account_light.svg",
"dark": "./resources/dark/microsoft_account_dark.svg"
}
},
{
"id": "work_school",
"icon": {
"light": "./resources/light/work_school_account_light.svg",
"dark": "./resources/dark/work_school_account_dark.svg"
}
}
],
"commands": [
{
"command": "accounts.clearTokenCache",
"title": "%accounts.clearTokenCache%",
"category": "Azure Accounts"
},
{
"command": "azure.resource.signin",
"title": "%azure.resource.signin.title%",
"icon": "$(add)"
},
{
"command": "azure.resource.refreshall",
"title": "%azure.resource.refreshall.title%",
"icon": "$(refresh)"
},
{
"command": "azure.resource.azureview.refresh",
"title": "%azure.resource.refresh.title%",
"icon": "$(refresh)"
},
{
"command": "azure.resource.connectiondialog.refresh",
"title": "%azure.resource.refresh.title%",
"icon": "$(refresh)"
},
{
"command": "azure.resource.selectsubscriptions",
"title": "%azure.resource.selectsubscriptions.title%",
"icon": "$(filter)"
},
{
"command": "azure.resource.startterminal",
"title": "%azure.resource.startterminal.title%",
"icon": "$(console)"
},
{
"command": "azure.resource.openInAzurePortal",
"title": "%azure.openInAzurePortal.title%"
},
{
"command": "azure.resource.connectsqlserver",
"title": "%azure.resource.connectsqlserver.title%",
"icon": {
"dark": "resources/dark/connect_to_inverse.svg",
"light": "resources/light/connect_to.svg"
}
},
{
"command": "azure.resource.connectsqldb",
"title": "%azure.resource.connectsqldb.title%",
"icon": {
"dark": "resources/dark/add_to_server_list_inverse.svg",
"light": "resources/light/add_to_server_list.svg"
}
},
{
"command": "azure.dataGrid.openInAzurePortal",
"title": "%azure.openInAzurePortal.title%"
}
],
"connectionTreeProvider": [
{
"id": "connectionDialog/azureResourceExplorer",
"name": "%azure.resource.explorer.title%"
}
],
"dataExplorer": {
"dataExplorer": [
{
"id": "azureResourceExplorer",
"name": "%azure.resource.explorer.title%"
}
]
},
"menus": {
"commandPalette": [
{
"command": "azure.resource.signin",
"when": "true"
},
{
"command": "azure.resource.refreshall",
"when": "true"
},
{
"command": "azure.resource.selectsubscriptions",
"when": "false"
},
{
"command": "azure.resource.azureview.refresh",
"when": "false"
},
{
"command": "azure.resource.connectiondialog.refresh",
"when": "false"
},
{
"command": "azure.resource.connectsqlserver",
"when": "false"
},
{
"command": "azure.dataGrid.openInAzurePortal",
"when": "false"
}
],
"view/title": [
{
"command": "azure.resource.signin",
"when": "view == azureResourceExplorer",
"group": "navigation@1"
},
{
"command": "azure.resource.refreshall",
"when": "view == azureResourceExplorer",
"group": "navigation@2"
}
],
"view/item/context": [
{
"command": "azure.resource.selectsubscriptions",
"when": "viewItem == azure.resource.itemType.account",
"group": "inline"
},
{
"command": "azure.resource.selectsubscriptions",
"when": "viewItem == azure.resource.itemType.account",
"group": "azurecore"
},
{
"command": "azure.resource.azureview.refresh",
"when": "viewItem =~ /^azure\\.resource\\.itemType\\.(?:account|subscription|databaseContainer|databaseServerContainer)$/",
"group": "inline"
},
{
"command": "azure.resource.azureview.refresh",
"when": "viewItem =~ /^azure\\.resource\\.itemType\\.(?:account|subscription|databaseContainer|databaseServerContainer)$/",
"group": "azurecore"
},
{
"command": "azure.resource.connectsqlserver",
"when": "viewItem == azure.resource.itemType.databaseServer || viewItem == azure.resource.itemType.database || viewItem == azure.resource.itemType.sqlInstance",
"group": "inline"
},
{
"command": "azure.resource.connectsqlserver",
"when": "viewItem == azure.resource.itemType.databaseServer || viewItem == azure.resource.itemType.database || viewItem == azure.resource.itemType.sqlInstance",
"group": "azurecore"
},
{
"command": "azure.resource.startterminal",
"when": "viewItem == azure.resource.itemType.account",
"group": "inline"
},
{
"command": "azure.resource.connectsqlserver",
"when": "viewItem == azure.resource.itemType.azureDataExplorer",
"group": "inline"
},
{
"command": "azure.resource.connectsqlserver",
"when": "viewItem == azure.resource.itemType.azureMonitor",
"group": "inline"
},
{
"command": "azure.resource.startterminal",
"when": "viewItem == azure.resource.itemType.account",
"group": "azurecore"
}
],
"connectionDialog/browseTree": [
{
"command": "azure.resource.selectsubscriptions",
"when": "contextValue == azure.resource.itemType.account",
"group": "navigation"
},
{
"command": "azure.resource.connectiondialog.refresh",
"when": "contextValue == azure.resource.itemType.account",
"group": "navigation"
},
{
"command": "azure.resource.signin",
"when": "treeId == connectionDialog/azureResourceExplorer",
"group": "navigation"
},
{
"command": "azure.resource.refreshall",
"when": "treeId == connectionDialog/azureResourceExplorer",
"group": "navigation"
}
],
"dataGrid/item/context": [
{
"command": "azure.dataGrid.openInAzurePortal"
}
]
},
"hasAzureResourceProviders": true
},
"dependencies": {
"@azure/arm-resourcegraph": "^4.0.0",
"@azure/arm-subscriptions": "^3.0.0",
"@azure/storage-blob": "^12.6.0",
"axios": "^0.27.2",
"node-fetch": "^2.6.7",
"qs": "^6.9.1",
"vscode-nls": "^4.0.0",
"ws": "^7.4.6"
},
"devDependencies": {
"@types/keytar": "4.4.0",
"@types/mocha": "^7.0.2",
"@types/node": "^12.11.7",
"@types/qs": "^6.9.1",
"@types/request": "^2.48.1",
"@types/sinon": "^9.0.4",
"@types/ws": "^6.0.4",
"mocha": "^7.1.1",
"should": "^13.2.1",
"sinon": "^9.0.2",
"typemoq": "^2.1.0",
"@microsoft/vscodetestcover": "^1.2.1",
"@microsoft/azdata-test": "^2.0.3"
}
}