Files
clang-p2996/mlir/utils/vscode/package.json
River Riddle 473a21c0e9 [vscode-mlir] Add support for restarting the server on setting/server changes
This revision adds detection for changes to either the mlir-lsp-server binary or the setting, and prompts the user to restart the server. Whether the user gets prompted or not is a configurable setting in the extension, and this setting may updated based on the user response to the prompt.

Differential Revision: https://reviews.llvm.org/D104501
2021-06-29 00:08:44 +00:00

97 lines
2.1 KiB
JSON

{
"name": "mlir",
"displayName": "MLIR",
"description": "MLIR Language Extension",
"version": "0.0.1",
"publisher": "llvm-vs-code-extensions",
"repository": "https://github.com/llvm/llvm-project/",
"engines": {
"vscode": "^1.52.0"
},
"categories": [
"Programming Languages"
],
"activationEvents": [
"onLanguage:mlir"
],
"main": "./out/extension",
"contributes": {
"languages": [
{
"id": "mlir",
"aliases": [
"MLIR",
"mlir"
],
"extensions": [
".mlir"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "mlir",
"scopeName": "source.mlir",
"path": "./grammar.json"
}
],
"configuration": {
"type": "object",
"title": "MLIR",
"properties": {
"mlir.server_path": {
"scope": "resource",
"type": "string",
"description": "The file path of the mlir-lsp-server executable."
},
"mlir.onSettingsChanged": {
"type": "string",
"default": "prompt",
"description": "Action taken when a setting change requires a server restart to take effect.",
"enum": [
"prompt",
"restart",
"ignore"
],
"enumDescriptions": [
"Prompt the user for restarting the server",
"Automatically restart the server",
"Do nothing"
]
}
}
},
"commands": [
{
"command": "mlir.restart",
"title": "mlir: Restart language server"
}
]
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -watch -p ./",
"format": "clang-format -i --glob=\"{src,test}/*.ts\"",
"test": "tsc -p ./ && node ./out/test/index.js",
"package": "vsce package"
},
"devDependencies": {
"@types/chokidar": "2.1.3",
"@types/mocha": "^5.2.0",
"@types/node": "^8.0.0",
"@types/vscode": "1.52.*",
"clang-format": "1.4.0",
"tslint": "^5.16.0",
"typescript": "^3.5.1",
"vsce": "^1.75.0",
"vscode-languageclient": "^5.2.1",
"vscode-test": "^1.3.0"
},
"dependencies": {
"chokidar": "3.5.2",
"vscode-languageclient": "^5.2.1",
"vscode-languageserver-types": "3.16.0"
}
}