Files
azuredatastudio/extensions/azdata/package.json
Arvind Ranasaria 1c4e65ebe1 azdata startup: install/update commands and configrations (#11924)
* WIP

* first version with working tests

* fixes needed after merge from main

* Linux untest changes and merge from other changes from mac

* after testing getTextContent

* rename 2 methods

* linux discovery

* tested code on linux

* using release.json for update discovery on linux

* comment added

* dead code removed

* coomments

* revert unrelated change

* revert testing changes

* code complete, testing pending

* test complete

* PR feedback

* remove SendOutputChannelToConsole

* cleanup

* pr feedback

* PR Feedback

* pr feedback

* pr feedback

* pr feedback

* fix loc function

* install/upgrade command - context sensitive

* add awaits as pr feedback

* cleanup

* merge from main

* merge from main

* cleanup and pr feedback

* PR feedback and cleanup

* cleanup

* pr feedback

* pr feedback.

* revert accidental changes

* cleanup

* test fixes

* test fixes and pr feedback

* pr fixes and eula similar to install/upgrade

* revert extraneous change

* log and prompt fixes

* string fixes

* string updates

* string updates based on PR feedback

* loc const rename

* pr feedback

* string fixes

* make setContext settings uniform

* add commandPallete

* eulaAccepted setContext  from memento

* misc fixes

* bug fixes

* test fix

* skip failinf test for fix later

* pr feedback

* upgrading -> updating

Co-authored-by: chgagnon <chgagnon@microsoft.com>
2020-09-03 12:23:53 -07:00

134 lines
3.5 KiB
JSON

{
"name": "azdata",
"displayName": "%azdata.displayName%",
"description": "%azdata.description%",
"version": "0.1.2",
"publisher": "Microsoft",
"preview": true,
"license": "https://raw.githubusercontent.com/Microsoft/azuredatastudio/main/LICENSE.txt",
"icon": "images/extension.png",
"engines": {
"vscode": "*",
"azdata": ">=1.20.0"
},
"activationEvents": [
"*"
],
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/azuredatastudio.git"
},
"main": "./out/extension",
"contributes": {
"configuration": [
{
"type": "object",
"title": "%azdata.config.title%",
"properties": {
"azdata.logDebugInfo": {
"type": "boolean",
"default": false,
"description": "%azdata.config.debug%"
},
"azdata.acceptEula": {
"type": "string",
"default": "prompt",
"enum": [
"dontPrompt",
"prompt"
],
"enumDescriptions": [
"%azdata.acceptEula.dontPrompt.description%",
"%azdata.acceptEula.prompt.description%"
],
"description": "%azdata.acceptEula.description%"
},
"azdata.install": {
"type": "string",
"default": "prompt",
"enum": [
"dontPrompt",
"prompt"
],
"enumDescriptions": [
"%azdata.install.dontPrompt.description%",
"%azdata.install.prompt.description%"
],
"description": "%azdata.install.description%"
},
"azdata.update": {
"type": "string",
"default": "prompt",
"enum": [
"dontPrompt",
"prompt"
],
"enumDescriptions": [
"%azdata.update.dontPrompt.description%",
"%azdata.update.prompt.description%"
],
"description": "%azdata.update.description%"
}
}
}
],
"commands": [
{
"command": "azdata.acceptEula",
"title": "%azdata.acceptEula.command.name%",
"category": "%command.category%"
},
{
"command": "azdata.install",
"title": "%azdata.install.command.name%",
"category": "%command.category%"
},
{
"command": "azdata.update",
"title": "%azdata.update.command.name%",
"category": "%command.category%"
}
],
"menus": {
"commandPalette": [
{
"command": "azdata.acceptEula",
"when": "!azdata.eulaAccepted"
},
{
"command": "azdata.install",
"when": "!azdata.found"
},
{
"command": "azdata.update",
"when": "azdata.found"
}
]
}
},
"dependencies": {
"request": "^2.88.2",
"semver": "^7.3.2",
"sudo-prompt": "^9.2.1",
"vscode-nls": "^4.1.2",
"which": "^2.0.2"
},
"devDependencies": {
"@types/mocha": "^5.2.5",
"@types/node": "^12.11.7",
"@types/request": "^2.48.5",
"@types/semver": "^7.3.1",
"@types/sinon": "^9.0.4",
"@types/uuid": "^8.0.0",
"@types/which": "^1.3.2",
"mocha": "^5.2.0",
"mocha-junit-reporter": "^1.17.0",
"mocha-multi-reporters": "^1.1.7",
"nock": "^13.0.2",
"should": "^13.2.3",
"sinon": "^9.0.2",
"typemoq": "^2.1.0",
"vscodetestcover": "^1.1.0"
}
}