vscode-mongodb/package.json

247 строки
5.5 KiB
JSON

{
"name": "vscode-mongodb",
"version": "0.0.1",
"publisher": "ms-vscode-devlab",
"displayName": "MongoDB",
"description": "Create, browse, and update MongoDB NoSQL collections and documents.",
"engines": {
"vscode": "^1.13.0"
},
"galleryBanner": {
"color": "#3E8E3A",
"theme": "light"
},
"icon": "media/MongoDB_Gray_Logo_FullColor_RGB-01.jpg",
"categories": [
"Other"
],
"homepage": "https://github.com/microsoft/vscode-mongodb/blob/master/README.md",
"bugs": {
"url": "https://github.com/microsoft/vscode-mongodb/issues"
},
"license": "SEE LICENSE IN LICENSE.md",
"repository": {
"type": "git",
"url": "https://github.com/microsoft/vscode-mongodb"
},
"main": "./out/src/extension",
"activationEvents": [
"onView:mongoExplorer",
"onCommand:mongo.execute",
"onCommand:mongo.addServer",
"onCommand:mongo.createDatabase",
"onCommand:mongo.removeServer",
"onCommand:mongo.connect",
"onCommand:mongo.connectDb",
"onCommand:mongo.dropDb",
"onCommand:mongo.newScrapbook",
"onCommand:mongo.updateDocuments",
"onCommand:mongo.openCollection"
],
"contributes": {
"views": {
"explorer": [
{
"id": "mongoExplorer",
"name": "Mongo",
"when": "config.mongo.showExplorer == true"
}
]
},
"languages": [
{
"id": "mongo",
"extensions": [
".mongo"
],
"firstLine": "^#!/.*\\bmongo*\\b",
"configuration": "./grammar/configuration.json"
}
],
"grammars": [
{
"language": "mongo",
"scopeName": "source.js",
"path": "./grammar/JavaScript.tmLanguage.json"
},
{
"scopeName": "source.js.regexp",
"path": "./grammar/Regular Expressions (JavaScript).tmLanguage"
}
],
"commands": [
{
"category": "Mongo",
"command": "mongo.executeCommand",
"title": "Execute Command"
},
{
"category": "Mongo",
"command": "mongo.addServer",
"title": "Add Server",
"icon": {
"light": "resources/icons/light/add.svg",
"dark": "resources/icons/dark/add.svg"
}
},
{
"category": "Mongo",
"command": "mongo.createDatabase",
"title": "Create Database"
},
{
"category": "Mongo",
"command": "mongo.removeServer",
"title": "Remove Server"
},
{
"category": "Mongo",
"command": "mongo.connect",
"title": "Connect"
},
{
"category": "Mongo",
"command": "mongo.connectDb",
"title": "Connect Database"
},
{
"category": "Mongo",
"command": "mongo.dropDb",
"title": "Drop"
},
{
"category": "Mongo",
"command": "mongo.newScrapbook",
"title": "New Scrapbook",
"icon": {
"light": "resources/icons/light/addFile.svg",
"dark": "resources/icons/dark/addFile.svg"
}
},
{
"category": "Mongo",
"command": "mongo.refreshExplorer",
"title": "Refresh",
"icon": {
"light": "resources/icons/light/refresh.svg",
"dark": "resources/icons/dark/refresh.svg"
}
},
{
"category": "Mongo",
"command": "mongo.updateDocuments",
"title": "Update"
},
{
"category": "Mongo",
"command": "mongo.openCollection",
"title": "Open Collection"
}
],
"menus": {
"editor/context": [
{
"command": "mongo.executeCommand",
"when": "resourceLangId==mongo"
},
{
"command": "mongo.updateDocuments",
"when": "resourceFilename==result.json"
}
],
"view/title": [
{
"command": "mongo.refreshExplorer",
"when": "view == mongoExplorer",
"group": "navigation"
},
{
"command": "mongo.addServer",
"when": "view == mongoExplorer",
"group": "navigation"
},
{
"command": "mongo.newScrapbook",
"when": "view == mongoExplorer",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "mongo.createDatabase",
"when": "view == mongoExplorer && viewItem == mongoServer"
},
{
"command": "mongo.removeServer",
"when": "view == mongoExplorer && viewItem == mongoServer"
},
{
"command": "mongo.connect",
"when": "view == mongoExplorer && viewItem == mongoDb"
},
{
"command": "mongo.dropDb",
"when": "view == mongoExplorer && viewItem == mongoDb"
}
],
"commandPalette": [
{
"command": "mongo.connect",
"when": "view == mongoExplorer && viewItem == mongoDb"
}
]
},
"keybindings": [
{
"command": "mongo.executeCommand",
"key": "ctrl+shift+'",
"mac": "cmd+shift+'",
"when": "editorLangId == 'mongo' && editorTextFocus"
}
],
"configuration": {
"title": "Mongo",
"properties": {
"mongo.shell.path": {
"type": [
"string",
"null"
],
"description": "Path to the Mongo shell executable",
"default": null,
"isExecutable": true
},
"mongo.showExplorer": {
"type": "boolean",
"default": true,
"description": "Show or hide the Mongo Explorer"
}
}
}
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"antlr4ts": "antlr4ts -visitor ./grammar/mongo.g4 -o ./src"
},
"devDependencies": {
"@types/mocha": "^2.2.32",
"@types/mongodb": "^2.2.9",
"@types/node": "^6.0.40",
"antlr4ts-cli": "^0.4.0-alpha.4",
"mocha": "^2.3.3",
"typescript": "^2.0.3",
"vscode": "^1.0.0"
},
"dependencies": {
"antlr4ts": "^0.4.0-alpha.4",
"mongodb": "^2.2.25",
"request-light": "^0.2.0",
"vscode-languageclient": "^3.1.0-alpha.1",
"vscode-languageserver": "^3.1.0-alpha.1",
"vscode-nls": "^2.0.2",
"vscode-uri": "^1.0.0",
"vscode-json-languageservice": "^2.0.9"
}
}