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