1{
2  "name": "vscode-mlir",
3  "displayName": "MLIR",
4  "description": "MLIR Language Extension",
5  "version": "0.0.10",
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    "onLanguage:mlir",
25    "onLanguage:pdll",
26    "onLanguage:tablegen"
27  ],
28  "main": "./out/extension",
29  "scripts": {
30    "vscode:prepublish": "tsc -p ./",
31    "compile": "tsc -watch -p ./",
32    "format": "clang-format -i --glob=\"{src,test}/*.ts\"",
33    "package": "vsce package",
34    "publish": "vsce publish",
35    "git-clang-format": "git-clang-format"
36  },
37  "dependencies": {
38    "chokidar": "3.5.2",
39    "vscode-languageclient": "^8.0.2-next.5"
40  },
41  "devDependencies": {
42    "@types/mocha": "^7.0.2",
43    "@types/node": "^14.17.0",
44    "@types/vscode": "~1.67.0",
45    "clang-format": "^1.8.0",
46    "typescript": "^4.6.4",
47    "vsce": "^2.7.0",
48    "vscode-test": "^1.3.0"
49  },
50  "repository": {
51    "type": "git",
52    "url": "https://github.com/llvm/vscode-mlir.git"
53  },
54  "contributes": {
55    "languages": [
56      {
57        "id": "mlir",
58        "aliases": [
59          "MLIR",
60          "mlir"
61        ],
62        "extensions": [
63          ".mlir"
64        ],
65        "configuration": "./language-configuration.json"
66      },
67      {
68        "id": "mlir-injection"
69      },
70      {
71        "id": "pdll",
72        "aliases": [
73          "PDLL",
74          "pdll"
75        ],
76        "extensions": [
77          ".pdll"
78        ],
79        "configuration": "./pdll-language-configuration.json"
80      },
81      {
82        "id": "tablegen",
83        "aliases": [
84          "TableGen",
85          "tblgen"
86        ],
87        "extensions": [
88          ".td"
89        ],
90        "configuration": "./tablegen-language-configuration.json"
91      }
92    ],
93    "grammars": [
94      {
95        "language": "mlir",
96        "scopeName": "source.mlir",
97        "path": "./grammar.json"
98      },
99      {
100        "language": "mlir-injection",
101        "scopeName": "markdown.mlir.codeblock",
102        "path": "markdown-grammar.json",
103        "injectTo": [
104          "text.html.markdown"
105        ],
106        "embeddedLanguages": {
107          "meta.embedded.block.mlir": "mlir",
108          "meta.embedded.block.pdll": "pdll",
109          "meta.embedded.block.tablegen": "tablegen"
110        }
111      },
112      {
113        "scopeName": "source.cpp.mlir",
114        "path": "./cpp-grammar.json",
115        "injectTo": [
116          "source.cpp"
117        ],
118        "embeddedLanguages": {
119          "source.mlir": "mlir"
120        }
121      },
122      {
123        "language": "pdll",
124        "scopeName": "source.pdll",
125        "path": "./pdll-grammar.json"
126      },
127      {
128        "language": "tablegen",
129        "scopeName": "source.tablegen",
130        "path": "./tablegen-grammar.json"
131      }
132    ],
133    "configuration": {
134      "type": "object",
135      "title": "MLIR",
136      "properties": {
137        "mlir.server_path": {
138          "scope": "resource",
139          "type": "string",
140          "description": "The file path of the mlir-lsp-server executable."
141        },
142        "mlir.pdll_server_path": {
143          "scope": "resource",
144          "type": "string",
145          "description": "The file path of the mlir-pdll-lsp-server executable."
146        },
147        "mlir.pdll_compilation_databases": {
148          "scope": "resource",
149          "type": "array",
150          "description": "A list of `pdll_compile_commands.yml` database files containing information about .pdll files processed by the server."
151        },
152        "mlir.tablegen_server_path": {
153          "scope": "resource",
154          "type": "string",
155          "description": "The file path of the tblgen-lsp-server executable."
156        },
157        "mlir.tablegen_compilation_databases": {
158          "scope": "resource",
159          "type": "array",
160          "description": "A list of `tablegen_compile_commands.yml` database files containing information about .td files processed by the server."
161        },
162        "mlir.onSettingsChanged": {
163          "type": "string",
164          "default": "prompt",
165          "description": "Action taken when a setting change requires a server restart to take effect.",
166          "enum": [
167            "prompt",
168            "restart",
169            "ignore"
170          ],
171          "enumDescriptions": [
172            "Prompt the user for restarting the server",
173            "Automatically restart the server",
174            "Do nothing"
175          ]
176        }
177      }
178    },
179    "commands": [
180      {
181        "command": "mlir.restart",
182        "title": "mlir: Restart language server"
183      },
184      {
185        "command": "mlir.viewPDLLOutput",
186        "title": "mlir-pdll: View PDLL output"
187      }
188    ],
189    "menus": {
190      "editor/context": [
191        {
192          "command": "mlir.viewPDLLOutput",
193          "group": "z_commands",
194          "when": "editorLangId == pdll"
195        }
196      ]
197    }
198  }
199}
200