-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
339 lines (339 loc) · 11.1 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
{
"name": "caesar",
"displayName": "Caesar Verifier",
"description": "The quantitative deductive verifier Caesar for VSCode",
"publisher": "rwth-moves",
"version": "2.0.8",
"repository": {
"type": "git",
"url": "https://github.com/moves-rwth/caesar.git",
"directory": "vscode-ext"
},
"homepage": "https://www.caesarverifier.org/",
"qna": "https://github.com/moves-rwth/caesar/discussions/categories/q-a",
"categories": [
"Programming Languages"
],
"icon": "images/icon.png",
"tags": [
"verification",
"snippet"
],
"license": "MIT",
"engines": {
"vscode": "^1.87.0"
},
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "caesar.restartServer",
"title": "Caesar: Restart Server"
},
{
"command": "caesar.startServer",
"title": "Caesar: Start Server"
},
{
"command": "caesar.stopServer",
"title": "Caesar: Stop Server"
},
{
"command": "caesar.verify",
"title": "Caesar: Verify"
},
{
"command": "caesar.copyCommand",
"title": "Caesar: Copy Command"
},
{
"command": "caesar.showOutput",
"title": "Caesar: Show Output Channel"
},
{
"command": "caesar.explainVc",
"title": "Caesar: Explain Verification Condition Generation"
},
{
"command": "caesar.explainCoreVc",
"title": "Caesar: Explain HeyVL Core Verification Condition Generation"
},
{
"command": "caesar.checkUpdate",
"title": "Caesar: Check for Updates"
},
{
"command": "caesar.uninstall",
"title": "Caesar: Uninstall Caesar"
},
{
"command": "caesar.openWalkthrough",
"title": "Caesar: Show Getting Started"
}
],
"languages": [
{
"id": "heyvl",
"aliases": [
"HeyVL",
"heyvl"
],
"extensions": [
".heyvl"
],
"icon": {
"light": "./images/heyvl.png",
"dark": "./images/heyvl.png"
},
"configuration": "./heyvl/language-configuration.json"
}
],
"grammars": [
{
"language": "heyvl",
"scopeName": "source.heyvl",
"path": "./heyvl/heyvl.tmLanguage.json"
}
],
"snippets": [
{
"language": "heyvl",
"path": "./heyvl/snippets.json"
}
],
"configuration": {
"type": "object",
"title": "Caesar",
"properties": {
"caesar.server.timeout": {
"type": "number",
"default": 300,
"description": "Specifies the timeout for the verifier in seconds.",
"order": 1
},
"caesar.server.installationOptions": {
"type": "string",
"default": "installerBinary",
"enum": [
"installerBinary",
"userBinary",
"source-code"
],
"enumDescriptions": [
"Use the binary from the installer",
"Use a user-provided binary of Caesar",
"Build Caesar from the source code"
],
"description": "Specifies how caesar will be executed from the extension.",
"order": 2
},
"caesar.server.binaryPath": {
"type": "string",
"default": "",
"description": "Specifies the path to the Caesar binary.",
"order": 3
},
"caesar.server.sourcePath": {
"type": "string",
"default": "",
"description": "Specifies the path to Caesar's source code. The extension will start Caesar using `cargo run`.",
"order": 4
},
"caesar.server.explainVc": {
"type": "string",
"default": "no",
"enum": [
"no",
"explain",
"core"
],
"enumDescriptions": [
"Do not add any explanations (default).",
"Add explanations for the wp/wlp/ert computations. Only @invariant-annotated loops are supported.",
"Add explanations for the vc computation on core HeyVL."
],
"description": "Explain ",
"order": 5
},
"caesar.server.sliceVerify": {
"type": "boolean",
"default": false,
"description": "Whether to slice for correctness. Without any additional annotations, this will enable slicing for assumptions. See Caesar's slicing documentation for more information.",
"order": 6
},
"caesar.server.args": {
"type": "string",
"default": "",
"description": "Specifies the arguments to be passed to the Caesar server.",
"order": 7
},
"caesar.server.autoStartServer": {
"type": "boolean",
"default": true,
"description": "Specifies whether to automatically start the server when the extension is activated.",
"order": 8
},
"caesar.userInterface.gutterIcons.showGutterIcons": {
"type": "boolean",
"default": true,
"description": "Specifies whether to show icons on the gutter about the verification status."
},
"caesar.userInterface.inlineGhostText.showInlineGhostText": {
"type": "boolean",
"default": true,
"description": "Specifies whether to show inline ghost text about the wp/wlp/ert."
},
"caesar.userInterface.statusBar.showStatusBar": {
"type": "boolean",
"default": true,
"description": "Specifies whether to show the status bar."
},
"caesar.automaticVerification": {
"type": "string",
"default": "onsave",
"enum": [
"never",
"onsave"
],
"enumDescriptions": [
"Verification only when the `Caesar: Verify` command is used",
"Verification whenever a .heyvl file is saved"
],
"description": "Specifies when Caesar automatically verifies the file."
},
"caesar.installer.autoCheck": {
"type": "boolean",
"default": true,
"description": "Automatically check for updates of Caesar every 24 hours."
},
"caesar.installer.nightly": {
"type": "boolean",
"default": false,
"description": "Install nightly releases. Warning: The latest nightly release might not work with your version of the VSCode extension!"
}
}
},
"colors": [
{
"id": "caesar.inlineGhostBackgroundColor",
"description": "Specifies the background color of the inline ghost texts.",
"defaults": {
"dark": "#00000000",
"light": "#00000000",
"highContrast": "#00000000"
}
},
{
"id": "caesar.inlineGhostForegroundColor",
"description": "Specifies the foreground color of the inline ghost texts.",
"defaults": {
"dark": "#cdcdcdb5",
"light": "#00000097",
"highContrast": "#e3e3e3"
}
}
],
"walkthroughs": [
{
"id": "caesar.welcome",
"title": "Get Started with Caesar",
"description": "Learn about Caesar and the Caesar Verifier for VSCode extension. You can always find more information in the [Caesar Documentation](https://www.caesarverifier.org/docs/).",
"steps": [
{
"id": "install",
"title": "Download Caesar Server",
"description": "You'll need to install the Caesar server. You can find more information in the [Installation Guide](https://www.caesarverifier.org/docs/getting-started/installation).\n[Automatically Install Caesar](command:caesar.checkUpdate)",
"media": {
"markdown": "walkthrough/installation.md"
},
"completionEvents": [
"onContext:caesarverifier.installedBinary"
]
},
{
"id": "openHeyVl",
"title": "Create a HeyVL file",
"description": "[Open](command:toSide:workbench.action.files.openFile) or [create](command:caesar.openExampleFileBeside) a HeyVL file - make sure to save it as \".heyvl\".\n[Create HeyVL File](command:caesar.openExampleFileBeside)",
"completionEvents": [
"onContext:caesarverifier.openedHeyVl"
],
"media": {
"markdown": "walkthrough/heyvl-examples.md"
}
},
{
"id": "verifyHeyvl",
"title": "Verify a HeyVL file",
"description": "Verify your first HeyVL file with Caesar. It will be verified whenever you save the file.",
"completionEvents": [
"onContext:caesarverifier.verifiedHeyVl"
],
"media": {
"image": "images/verified-demo.png",
"altText": "Demo"
}
},
{
"id": "explainvc",
"title": "Explain Verification Conditions",
"description": "Show computed verification conditions via the \"Explain Verification Condition Generation\" command. Leave empty lines between code to show the computations. Run again to disable.\n[Explain Verification Conditions](command:caesar.explainVc)",
"completionEvents": [
"onContext:caesarverifier.explainedVc"
],
"media": {
"image": "images/vc-demo.png",
"altText": "Demo"
}
},
{
"id": "learnmore",
"title": "Learn More",
"description": "Veni, vidi, vici! Caesar's documentation is available online. If you have any questions, don't hesitate to contact us via the links in the documentation.\n[Open Documentation](https://www.caesarverifier.org/docs/)",
"completionEvents": [
"onLink:https://www.caesarverifier.org/docs/"
],
"media": {
"image": "images/icon.png",
"altText": "Caesar Logo"
}
}
]
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint .",
"test": "vscode-test",
"package": "vsce package"
},
"devDependencies": {
"@eslint/js": "^9.2.0",
"@types/adm-zip": "^0.5.5",
"@types/mocha": "^10.0.6",
"@types/node": "18.x",
"@types/semver": "^7.5.8",
"@types/tar": "^6.1.13",
"@types/vscode": "^1.87.0",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"@vscode/test-cli": "^0.0.6",
"@vscode/test-electron": "^2.3.9",
"@vscode/vsce": "^2.26.1",
"eslint": "^8.56.0",
"typescript": "^5.3.3",
"typescript-eslint": "^7.9.0"
},
"dependencies": {
"@octokit/rest": "^20.1.1",
"adm-zip": "github:cthackers/adm-zip#d3f5d7b71c48a1d0bec71362df308c3167c542d7",
"got": "^11.8.6",
"octokit": "^4.0.2",
"semver": "^7.6.2",
"tar": "^6.2.1",
"vscode-languageclient": "^9.0.1"
}
}