1{ 2 "name": "vscode-mlir", 3 "displayName": "MLIR", 4 "description": "MLIR Language Extension", 5 "version": "0.0.4", 6 "publisher": "llvm-vs-code-extensions", 7 "homepage": "https://mlir.llvm.org/", 8 "icon": "icon.png", 9 "engines": { 10 "vscode": "^1.52.0" 11 }, 12 "categories": [ 13 "Programming Languages" 14 ], 15 "keywords": [ 16 "LLVM", 17 "MLIR" 18 ], 19 "activationEvents": [ 20 "onLanguage:mlir" 21 ], 22 "main": "./out/extension", 23 "scripts": { 24 "vscode:prepublish": "tsc -p ./", 25 "compile": "tsc -watch -p ./", 26 "format": "clang-format -i --glob=\"{src,test}/*.ts\"", 27 "package": "vsce package", 28 "publish": "vsce publish", 29 "git-clang-format": "git-clang-format" 30 }, 31 "dependencies": { 32 "chokidar": "3.5.2", 33 "vscode-languageclient": "^5.2.1", 34 "vscode-languageserver-types": "3.16.0" 35 }, 36 "devDependencies": { 37 "@types/mocha": "^5.2.0", 38 "@types/node": "^8.0.0", 39 "@types/vscode": "1.52.*", 40 "clang-format": "1.4.0", 41 "tslint": "^5.16.0", 42 "typescript": "^3.5.1", 43 "vsce": "^1.75.0", 44 "vscode-test": "^1.3.0" 45 }, 46 "repository": { 47 "type": "git", 48 "url": "https://github.com/llvm/vscode-mlir.git" 49 }, 50 "contributes": { 51 "languages": [ 52 { 53 "id": "mlir", 54 "aliases": [ 55 "MLIR", 56 "mlir" 57 ], 58 "extensions": [ 59 ".mlir" 60 ], 61 "configuration": "./language-configuration.json" 62 }, 63 { 64 "id": "mlir-injection" 65 } 66 ], 67 "grammars": [ 68 { 69 "language": "mlir", 70 "scopeName": "source.mlir", 71 "path": "./grammar.json" 72 }, 73 { 74 "language": "mlir-injection", 75 "scopeName": "markdown.mlir.codeblock", 76 "path": "markdown-grammar.json", 77 "injectTo": [ 78 "text.html.markdown" 79 ], 80 "embeddedLanguages": { 81 "meta.embedded.block.mlir": "mlir" 82 } 83 }, 84 { 85 "scopeName": "source.cpp.mlir", 86 "path": "./cpp-grammar.json", 87 "injectTo": [ 88 "source.cpp" 89 ], 90 "embeddedLanguages": { 91 "source.mlir": "mlir" 92 } 93 } 94 ], 95 "configuration": { 96 "type": "object", 97 "title": "MLIR", 98 "properties": { 99 "mlir.server_path": { 100 "scope": "resource", 101 "type": "string", 102 "description": "The file path of the mlir-lsp-server executable." 103 }, 104 "mlir.onSettingsChanged": { 105 "type": "string", 106 "default": "prompt", 107 "description": "Action taken when a setting change requires a server restart to take effect.", 108 "enum": [ 109 "prompt", 110 "restart", 111 "ignore" 112 ], 113 "enumDescriptions": [ 114 "Prompt the user for restarting the server", 115 "Automatically restart the server", 116 "Do nothing" 117 ] 118 } 119 } 120 }, 121 "commands": [ 122 { 123 "command": "mlir.restart", 124 "title": "mlir: Restart language server" 125 } 126 ] 127 } 128} 129