mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-09 09:42:34 -05:00
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>
This commit is contained in:
@@ -20,16 +20,90 @@
|
||||
},
|
||||
"main": "./out/extension",
|
||||
"contributes": {
|
||||
"configuration": {
|
||||
"type": "object",
|
||||
"title": "%azdata.config.title%",
|
||||
"properties": {
|
||||
"azdata.logDebugInfo": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "%azdata.config.debug%"
|
||||
"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": {
|
||||
|
||||
Reference in New Issue
Block a user