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

130 lines
4.3 KiB
JSON

{
"name": "vscode-clangd",
"displayName": "vscode-clangd",
"description": "Clang Language Server",
"version": "0.0.19",
"publisher": "llvm-vs-code-extensions",
"homepage": "https://clang.llvm.org/extra/clangd.html",
"engines": {
"vscode": "^1.36.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 ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"format": "clang-format --style=LLVM -i --glob=\"{src,test}/*.ts\"",
"test": "node ./node_modules/vscode/bin/test",
"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.0.0-next.1",
"vscode-languageserver": "^6.0.0-next.1",
"vscode-languageserver-types": "^3.15.0-next.5"
},
"devDependencies": {
"@types/mocha": "^2.2.32",
"@types/node": "^6.0.40",
"clang-format": "1.2.4",
"mocha": "^5.2.0",
"typescript": "^2.0.3",
"vscode": "^1.1.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"
}
]
}
}