Skip to content

Instantly share code, notes, and snippets.

@potatoqualitee
Created November 26, 2018 08:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save potatoqualitee/543e1815ce1a7353f678f06eec3b7cef to your computer and use it in GitHub Desktop.
Save potatoqualitee/543e1815ce1a7353f678f06eec3b7cef to your computer and use it in GitHub Desktop.
sample config
{
"name": "search",
"displayName": "dbatools simple search",
"description": "search right from your code: dbatools, microsoft docs and google",
"version": "1.0.0",
"icon": "resources/search.png",
"publisher": "dbatools",
"engines": {
"vscode": "^1.11.0"
},
"author": {
"name": "Chrissy LeMaire",
"url": "https://github.com/potatoqualitee"
},
"homepage": "https://github.com/potatoqualitee/vscode-dbatools-search",
"repository": {
"type": "git",
"url": "https://github.com/potatoqualitee/vscode-dbatools-search.git"
},
"bugs": {
"url": "https://github.com/potatoqualitee/vscode-dbatools-search/issues"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:extension.docsSearch",
"onCommand:extension.googleSearch",
"onCommand:extension.dbatoolsSearch"
],
"main": "./extension",
"contributes": {
"menus": {
"editor/context": [
{
"when": "editorHasSelection",
"command": "extension.docsSearch",
"group": "dbatools"
},
{
"when": "editorHasSelection",
"command": "extension.googleSearch",
"group": "dbatools"
},
{
"when": "editorHasSelection",
"command": "extension.dbatoolsSearch",
"group": "dbatools"
}
]
},
"commands": [
{
"command": "extension.docsSearch",
"title": "Search microsoft docs",
"category": "docs"
},
{
"command": "extension.googleSearch",
"title": "Search google",
"category": "google"
},
{
"command": "extension.dbatoolsSearch",
"title": "Search dbatools",
"category": "dbatools"
}
],
"configuration": {
"title": "dbatools Search Configuration",
"type": "object",
"properties": {
"menuthings.dbaextenabled": {
"type": "boolean",
"default": true,
"description": "Enable search context for dbatools"
},
"docsSearch.docsQueryTemplate": {
"type": "string",
"default": "https://docs.microsoft.com/en-us/search/index?search=%SELECTION%",
"description": "Search query for docs.microsoft.com."
},
"googleSearch.googleQueryTemplate": {
"type": "string",
"default": "https://www.google.com/search?q=%SELECTION%",
"description": "Search query for google.com."
},
"dbatoolsSearch.dbatoolsQueryTemplate": {
"type": "string",
"default": "https://dbatools.io/?s=%SELECTION%",
"description": "Search query for dbatools."
}
}
}
},
"scripts": {
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "node ./node_modules/vscode/bin/test"
},
"devDependencies": {
"vscode": "^1.0.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment