233 lines · json
1{2 "name": "vscode-mlir",3 "displayName": "MLIR",4 "description": "MLIR Language Extension",5 "version": "0.0.12",6 "publisher": "llvm-vs-code-extensions",7 "homepage": "https://mlir.llvm.org/",8 "icon": "icon.png",9 "engines": {10 "vscode": "^1.67.0"11 },12 "categories": [13 "Programming Languages"14 ],15 "keywords": [16 "LLVM",17 "MLIR",18 "PDLL",19 "TableGen",20 "tblgen",21 "tablegen"22 ],23 "activationEvents": [24 "onFileSystem:mlir.bytecode-mlir",25 "onCustomEditor:mlir.bytecode",26 "onLanguage:mlir",27 "onLanguage:pdll",28 "onLanguage:tablegen"29 ],30 "main": "./out/extension",31 "scripts": {32 "vscode:prepublish": "tsc -p ./",33 "compile": "tsc -watch -p ./",34 "format": "clang-format -i --glob=\"{src,test}/*.ts\"",35 "package": "vsce package",36 "publish": "vsce publish",37 "git-clang-format": "git-clang-format"38 },39 "dependencies": {40 "base64-js": "^1.5.1",41 "chokidar": "3.5.2",42 "minimatch": "^3.0.5",43 "semver": "^7.5.2",44 "vscode-languageclient": "^8.0.2-next.5"45 },46 "devDependencies": {47 "@types/mocha": "^7.0.2",48 "@types/node": "^14.17.0",49 "@types/vscode": "~1.67.0",50 "@vscode/vsce": "^2.19.0",51 "clang-format": "^1.8.0",52 "typescript": "^4.9.5",53 "vscode-test": "^1.3.0"54 },55 "repository": {56 "type": "git",57 "url": "https://github.com/llvm/vscode-mlir.git"58 },59 "contributes": {60 "customEditors": [61 {62 "viewType": "mlir.bytecode",63 "displayName": "MLIR Bytecode",64 "priority": "default",65 "selector": [66 {67 "filenamePattern": "*.mlirbc"68 }69 ]70 }71 ],72 "languages": [73 {74 "id": "mlir",75 "aliases": [76 "MLIR",77 "mlir"78 ],79 "extensions": [80 ".mlir",81 ".mlirbc"82 ],83 "configuration": "./language-configuration.json"84 },85 {86 "id": "mlir-injection"87 },88 {89 "id": "pdll",90 "aliases": [91 "PDLL",92 "pdll"93 ],94 "extensions": [95 ".pdll"96 ],97 "configuration": "./pdll-language-configuration.json"98 },99 {100 "id": "tablegen",101 "aliases": [102 "TableGen",103 "tblgen"104 ],105 "extensions": [106 ".td"107 ],108 "configuration": "./tablegen-language-configuration.json"109 }110 ],111 "grammars": [112 {113 "language": "mlir",114 "scopeName": "source.mlir",115 "path": "./grammar.json"116 },117 {118 "language": "mlir-injection",119 "scopeName": "markdown.mlir.codeblock",120 "path": "markdown-grammar.json",121 "injectTo": [122 "text.html.markdown"123 ],124 "embeddedLanguages": {125 "meta.embedded.block.mlir": "mlir",126 "meta.embedded.block.pdll": "pdll",127 "meta.embedded.block.tablegen": "tablegen"128 }129 },130 {131 "scopeName": "source.cpp.mlir",132 "path": "./cpp-grammar.json",133 "injectTo": [134 "source.cpp"135 ],136 "embeddedLanguages": {137 "source.mlir": "mlir"138 }139 },140 {141 "language": "pdll",142 "scopeName": "source.pdll",143 "path": "./pdll-grammar.json"144 },145 {146 "language": "tablegen",147 "scopeName": "source.tablegen",148 "path": "./tablegen-grammar.json"149 }150 ],151 "configuration": {152 "type": "object",153 "title": "MLIR",154 "properties": {155 "mlir.server_path": {156 "scope": "resource",157 "type": "string",158 "description": "The file path of the mlir-lsp-server executable."159 },160 "mlir.mlir_additional_server_args": {161 "scope": "resource",162 "type": "array",163 "description": "A list of additional arguments for mlir-lsp-server executable. E.g. --log=verbose."164 },165 "mlir.pdll_server_path": {166 "scope": "resource",167 "type": "string",168 "description": "The file path of the mlir-pdll-lsp-server executable."169 },170 "mlir.pdll_compilation_databases": {171 "scope": "resource",172 "type": "array",173 "description": "A list of `pdll_compile_commands.yml` database files containing information about .pdll files processed by the server."174 },175 "mlir.pdll_additional_server_args": {176 "scope": "resource",177 "type": "array",178 "description": "A list of additional arguments for pdll-lsp-server executable. E.g. --log=verbose."179 },180 "mlir.tablegen_server_path": {181 "scope": "resource",182 "type": "string",183 "description": "The file path of the tblgen-lsp-server executable."184 },185 "mlir.tablegen_compilation_databases": {186 "scope": "resource",187 "type": "array",188 "description": "A list of `tablegen_compile_commands.yml` database files containing information about .td files processed by the server."189 },190 "mlir.tablegen_additional_server_args": {191 "scope": "resource",192 "type": "array",193 "description": "A list of additional arguments for tblgen-lsp-server executable. E.g. --log=verbose."194 },195 "mlir.onSettingsChanged": {196 "type": "string",197 "default": "prompt",198 "description": "Action taken when a setting change requires a server restart to take effect.",199 "enum": [200 "prompt",201 "restart",202 "ignore"203 ],204 "enumDescriptions": [205 "Prompt the user for restarting the server",206 "Automatically restart the server",207 "Do nothing"208 ]209 }210 }211 },212 "commands": [213 {214 "command": "mlir.restart",215 "title": "mlir: Restart language server"216 },217 {218 "command": "mlir.viewPDLLOutput",219 "title": "mlir-pdll: View PDLL output"220 }221 ],222 "menus": {223 "editor/context": [224 {225 "command": "mlir.viewPDLLOutput",226 "group": "z_commands",227 "when": "editorLangId == pdll"228 }229 ]230 }231 }232}233