llvm-project/clang-tools-extra/clangd/clients/clangd-vscode/package.json

132 lines
4.3 KiB
JSON

{
"name": "vscode-clangd",
"displayName": "vscode-clangd",
"description": "Clang Language Server",
"version": "0.0.20",
"publisher": "llvm-vs-code-extensions",
"homepage": "https://clang.llvm.org/extra/clangd.html",
"engines": {
"vscode": "^1.41.0"
},
"categories": [
"Programming Languages",
"Linters",
"Snippets"
],
"keywords": [
"C",
"C++",
"LSP",
"Clangd",
"LLVM"
],
"activationEvents": [
"onLanguage:c",
"onLanguage:cpp",
"onLanguage:cuda",
"onLanguage:objective-c",
"onLanguage:objective-cpp",
"onCommand:clangd-vscode.activate"
],
"main": "./out/src/extension",
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -watch -p ./",
"format": "clang-format --style=LLVM -i --glob=\"{src,test}/*.ts\"",
"test": "tsc -p ./ && node ./out/test/runTest.js",
"package": "vsce package --baseImagesUrl https://raw.githubusercontent.com/llvm/llvm-project/master/clang-tools-extra/clangd/clients/clangd-vscode/",
"publish": "vsce publish --baseImagesUrl https://raw.githubusercontent.com/llvm/llvm-project/master/clang-tools-extra/clangd/clients/clangd-vscode/"
},
"dependencies": {
"jsonc-parser": "^2.1.0",
"vscode-languageclient": "^6.1.0",
"vscode-languageserver": "^6.1.0",
"vscode-languageserver-types": "^3.15.1"
},
"devDependencies": {
"@types/glob": "^7.1.1",
"@types/mocha": "^2.2.32",
"@types/node": "^6.0.40",
"@types/vscode": "^1.41.0",
"glob": "^7.1.4",
"clang-format": "1.2.4",
"mocha": "^5.2.0",
"typescript": "^3.5.1",
"vscode-test": "^1.3.0"
},
"repository": {
"type": "svn",
"url": "http://llvm.org/svn/llvm-project/clang-tools-extra/trunk/clangd/clients/clangd-vscode/"
},
"contributes": {
"languages": [
{
"id": "cpp",
"filenamePatterns": [
"**/include/c++/**",
"**/MSVC/*/include/**"
],
"firstLine": "^/[/*].*-\\*-\\s*C\\+\\+\\s*-\\*-.*"
},
{
"id": "cuda",
"extensions": [
".cu",
".cuh"
]
}
],
"configuration": {
"type": "object",
"title": "clangd configuration",
"properties": {
"clangd.path": {
"type": "string",
"default": "clangd",
"description": "The path to clangd executable, e.g.: /usr/bin/clangd"
},
"clangd.arguments": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"description": "Arguments for clangd server"
},
"clangd.syncFileEvents": {
"type": "boolean",
"default": true,
"description": "Whether or not to send file events to clangd (File created, changed or deleted). This can be disabled for performance consideration."
},
"clangd.trace": {
"type": "string",
"description": "Names a file that clangd should log a performance trace to, in chrome trace-viewer JSON format."
},
"clangd.semanticHighlighting": {
"type": "boolean",
"default": "true",
"description": "Enable semantic highlighting in clangd"
}
}
},
"commands": [
{
"command": "clangd-vscode.switchheadersource",
"title": "Switch between Source/Header"
},
{
"command": "clangd-vscode.activate",
"title": "Manually activate clangd extension"
}
],
"keybindings": [
{
"command": "clangd-vscode.switchheadersource",
"key": "Alt+o",
"mac": "Alt+cmd+o",
"when": "editorTextFocus"
}
]
}
}