mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Move query history into extension (#19794)
* initial * more * Remove connectionId * cleanup * cleanup * Remove core contributions, add to panel by default * Add enabled state * Update config * cleanup * Move * Remove newlines * update README
This commit is contained in:
@@ -1,61 +1,187 @@
|
||||
{
|
||||
"name": "query-history",
|
||||
"displayName": "%queryHistory.displayName%",
|
||||
"description": "%queryHistory.description%",
|
||||
"version": "0.2.0",
|
||||
"publisher": "Microsoft",
|
||||
"preview": true,
|
||||
"license": "https://raw.githubusercontent.com/Microsoft/azuredatastudio/main/LICENSE.txt",
|
||||
"icon": "images/extension.png",
|
||||
"aiKey": "AIF-37eefaf0-8022-4671-a3fb-64752724682e",
|
||||
"engines": {
|
||||
"vscode": "^1.30.1",
|
||||
"azdata": ">=1.12.0"
|
||||
},
|
||||
"activationEvents": [
|
||||
"*"
|
||||
],
|
||||
"main": "./out/main",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Microsoft/azuredatastudio.git"
|
||||
},
|
||||
"capabilities": {
|
||||
"virtualWorkspaces": false,
|
||||
"untrustedWorkspaces": {
|
||||
"supported": true
|
||||
}
|
||||
},
|
||||
"extensionDependencies": [],
|
||||
"contributes": {
|
||||
"commands": [
|
||||
{
|
||||
"command": "queryHistory.clear",
|
||||
"title": "%queryHistory.clear%",
|
||||
"category": "%queryHistory.displayName%"
|
||||
},
|
||||
{
|
||||
"command": "queryHistory.toggleCapture",
|
||||
"title": "%queryHistory.toggleCapture%",
|
||||
"category": "%queryHistory.displayName%"
|
||||
}
|
||||
],
|
||||
"menus": {
|
||||
"commandPalette": [
|
||||
{
|
||||
"command": "queryHistory.clear"
|
||||
},
|
||||
{
|
||||
"command": "queryHistory.toggleCapture"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": { },
|
||||
"__metadata": {
|
||||
"id": "55",
|
||||
"publisherDisplayName": "Microsoft",
|
||||
"publisherId": "Microsoft"
|
||||
}
|
||||
"name": "query-history",
|
||||
"displayName": "%queryHistory.displayName%",
|
||||
"description": "%queryHistory.description%",
|
||||
"version": "0.3.0",
|
||||
"publisher": "Microsoft",
|
||||
"preview": true,
|
||||
"license": "https://raw.githubusercontent.com/Microsoft/azuredatastudio/main/LICENSE.txt",
|
||||
"icon": "images/extension.png",
|
||||
"aiKey": "AIF-37eefaf0-8022-4671-a3fb-64752724682e",
|
||||
"engines": {
|
||||
"vscode": "*",
|
||||
"azdata": ">=1.38.0"
|
||||
},
|
||||
"activationEvents": [
|
||||
"*"
|
||||
],
|
||||
"main": "./out/main",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Microsoft/azuredatastudio.git"
|
||||
},
|
||||
"capabilities": {
|
||||
"virtualWorkspaces": false,
|
||||
"untrustedWorkspaces": {
|
||||
"supported": true
|
||||
}
|
||||
},
|
||||
"extensionDependencies": [
|
||||
"Microsoft.mssql"
|
||||
],
|
||||
"contributes": {
|
||||
"configuration": [
|
||||
{
|
||||
"type": "object",
|
||||
"title": "%queryHistory.displayName%",
|
||||
"properties": {
|
||||
"queryHistory.captureEnabled": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "%queryHistory.captureEnabledDesc%"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"commands": [
|
||||
{
|
||||
"command": "queryHistory.open",
|
||||
"title": "%queryHistory.open%",
|
||||
"category": "%queryHistory.displayName%"
|
||||
},
|
||||
{
|
||||
"command": "queryHistory.run",
|
||||
"title": "%queryHistory.run%",
|
||||
"category": "%queryHistory.displayName%"
|
||||
},
|
||||
{
|
||||
"command": "queryHistory.delete",
|
||||
"title": "%queryHistory.delete%",
|
||||
"category": "%queryHistory.displayName%"
|
||||
},
|
||||
{
|
||||
"command": "queryHistory.clear",
|
||||
"title": "%queryHistory.clear%",
|
||||
"category": "%queryHistory.displayName%",
|
||||
"icon": "$(clear-all)"
|
||||
},
|
||||
{
|
||||
"command": "queryHistory.disableCapture",
|
||||
"title": "%queryHistory.disableCapture%",
|
||||
"category": "%queryHistory.displayName%",
|
||||
"icon": "$(debug-pause)"
|
||||
},
|
||||
{
|
||||
"command": "queryHistory.enableCapture",
|
||||
"title": "%queryHistory.enableCapture%",
|
||||
"category": "%queryHistory.displayName%",
|
||||
"icon": "$(play)"
|
||||
}
|
||||
],
|
||||
"menus": {
|
||||
"commandPalette": [
|
||||
{
|
||||
"command": "queryHistory.open",
|
||||
"when": "false"
|
||||
},
|
||||
{
|
||||
"command": "queryHistory.run",
|
||||
"when": "false"
|
||||
},
|
||||
{
|
||||
"command": "queryHistory.delete",
|
||||
"when": "false"
|
||||
},
|
||||
{
|
||||
"command": "queryHistory.disableCapture",
|
||||
"when": "config.queryHistory.captureEnabled"
|
||||
},
|
||||
{
|
||||
"command": "queryHistory.enableCapture",
|
||||
"when": "!config.queryHistory.captureEnabled"
|
||||
}
|
||||
],
|
||||
"view/title": [
|
||||
{
|
||||
"command": "queryHistory.clear",
|
||||
"when": "view == queryHistory",
|
||||
"group": "navigation"
|
||||
},
|
||||
{
|
||||
"command": "queryHistory.disableCapture",
|
||||
"when": "view == queryHistory && config.queryHistory.captureEnabled",
|
||||
"group": "navigation"
|
||||
},
|
||||
{
|
||||
"command": "queryHistory.enableCapture",
|
||||
"when": "view == queryHistory && !config.queryHistory.captureEnabled",
|
||||
"group": "navigation"
|
||||
}
|
||||
],
|
||||
"view/item/context": [
|
||||
{
|
||||
"command": "queryHistory.open",
|
||||
"when": "view == queryHistory",
|
||||
"group": "QueryHistory@1"
|
||||
},
|
||||
{
|
||||
"command": "queryHistory.run",
|
||||
"when": "view == queryHistory",
|
||||
"group": "QueryHistory@2"
|
||||
},
|
||||
{
|
||||
"command": "queryHistory.delete",
|
||||
"when": "view == queryHistory",
|
||||
"group": "QueryHistory@3"
|
||||
},
|
||||
{
|
||||
"command": "queryHistory.clear",
|
||||
"when": "view == queryHistory",
|
||||
"group": "QueryHistory@4"
|
||||
},
|
||||
{
|
||||
"command": "queryHistory.disableCapture",
|
||||
"when": "view == queryHistory && config.queryHistory.capatureEnabled",
|
||||
"group": "QueryHistory@5"
|
||||
},
|
||||
{
|
||||
"command": "queryHistory.enableCapture",
|
||||
"when": "view == queryHistory && !config.queryHistory.captureEnabled",
|
||||
"group": "QueryHistory@5"
|
||||
}
|
||||
]
|
||||
},
|
||||
"views": {
|
||||
"queryHistory": [
|
||||
{
|
||||
"id": "queryHistory",
|
||||
"name": "%queryHistory.displayName%"
|
||||
}
|
||||
]
|
||||
},
|
||||
"viewsWelcome": [
|
||||
{
|
||||
"view": "queryHistory",
|
||||
"contents": "%queryHistory.noEntries%"
|
||||
}
|
||||
],
|
||||
"viewsContainers": {
|
||||
"panel": [
|
||||
{
|
||||
"id": "queryHistory",
|
||||
"title": "%queryHistory.displayName%",
|
||||
"icon": "./images/history.png"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@types/node": "^12.11.7"
|
||||
},
|
||||
"__metadata": {
|
||||
"id": "55",
|
||||
"publisherDisplayName": "Microsoft",
|
||||
"publisherId": "Microsoft"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user