Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
390 lines (390 loc) · 12.1 KB
/
Copy pathpackage.json
File metadata and controls
390 lines (390 loc) · 12.1 KB
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
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
{
"name": "easycrypt-vscode",
"displayName": "EasyCrypt",
"description": "EasyCrypt language support for VS Code - syntax highlighting, proof navigation, and interactive proof development",
"icon": "assets/icon.png",
"version": "0.2.5",
"publisher": "tornado",
"license": "GPL-3.0",
"repository": {
"type": "git",
"url": "https://github.com/tornado80/easycrypt-vscode-ide"
},
"engines": {
"vscode": "^1.85.0"
},
"main": "./out/extension.js",
"activationEvents": [
"onLanguage:easycrypt"
],
"categories": [
"Programming Languages"
],
"keywords": [
"easycrypt",
"proof assistant",
"formal verification",
"cryptography"
],
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "easycrypt",
"title": "EasyCrypt",
"icon": "assets/activitybar-icon.svg"
}
]
},
"views": {
"easycrypt": [
{
"type": "webview",
"id": "easycrypt.proofStateView",
"name": "EasyCrypt",
"icon": "assets/icon.png",
"contextualTitle": "EasyCrypt"
}
]
},
"commands": [
{
"command": "easycrypt.checkFile",
"title": "EasyCrypt: Check File",
"icon": "$(beaker)"
},
{
"command": "easycrypt.startProcess",
"title": "EasyCrypt: Start/Restart Process"
},
{
"command": "easycrypt.stopProcess",
"title": "EasyCrypt: Stop Process"
},
{
"command": "easycrypt.clearAllDiagnostics",
"title": "EasyCrypt: Clear All Diagnostics"
},
{
"command": "easycrypt.clearFileDiagnostics",
"title": "EasyCrypt: Clear File Diagnostics"
},
{
"command": "easycrypt.showDiagnosticCount",
"title": "EasyCrypt: Show Diagnostic Count"
},
{
"command": "easycrypt.stepForward",
"title": "EasyCrypt: Step Forward",
"icon": "$(arrow-down)"
},
{
"command": "easycrypt.stepBackward",
"title": "EasyCrypt: Step Backward",
"icon": "$(arrow-up)"
},
{
"command": "easycrypt.goToCursor",
"title": "EasyCrypt: Go to Cursor",
"icon": "$(target)"
},
{
"command": "easycrypt.resetProof",
"title": "EasyCrypt: Reset Proof State"
},
{
"command": "easycrypt.forceRecovery",
"title": "EasyCrypt: Force Recovery (Fix Desync)"
},
{
"command": "easycrypt.toggleVerboseLogging",
"title": "EasyCrypt: Toggle Verbose Logging"
}
],
"menus": {
"editor/title": [
{
"command": "easycrypt.checkFile",
"when": "resourceLangId == easycrypt",
"group": "navigation"
}
],
"commandPalette": [
{
"command": "easycrypt.checkFile",
"when": "resourceLangId == easycrypt"
},
{
"command": "easycrypt.clearFileDiagnostics",
"when": "resourceLangId == easycrypt"
},
{
"command": "easycrypt.stepForward",
"when": "resourceLangId == easycrypt"
},
{
"command": "easycrypt.stepBackward",
"when": "resourceLangId == easycrypt"
},
{
"command": "easycrypt.goToCursor",
"when": "resourceLangId == easycrypt"
},
{
"command": "easycrypt.resetProof",
"when": "resourceLangId == easycrypt"
},
{
"command": "easycrypt.forceRecovery",
"when": "resourceLangId == easycrypt"
}
]
},
"keybindings": [
{
"command": "easycrypt.checkFile",
"key": "ctrl+shift+c",
"mac": "cmd+shift+c",
"when": "resourceLangId == easycrypt"
},
{
"command": "easycrypt.stepForward",
"key": "alt+down",
"mac": "alt+down",
"when": "resourceLangId == easycrypt && config.easycrypt.keybindings.profile == 'default'"
},
{
"command": "easycrypt.stepBackward",
"key": "alt+up",
"mac": "alt+up",
"when": "resourceLangId == easycrypt && config.easycrypt.keybindings.profile == 'default'"
},
{
"command": "easycrypt.goToCursor",
"key": "alt+right",
"mac": "alt+right",
"when": "resourceLangId == easycrypt && config.easycrypt.keybindings.profile == 'default'"
},
{
"command": "easycrypt.resetProof",
"key": "alt+left",
"mac": "alt+left",
"when": "resourceLangId == easycrypt && config.easycrypt.keybindings.profile == 'default'"
},
{
"command": "easycrypt.stepForward",
"key": "ctrl+alt+down",
"mac": "ctrl+down",
"when": "resourceLangId == easycrypt && config.easycrypt.keybindings.profile == 'proof-general'"
},
{
"command": "easycrypt.stepBackward",
"key": "ctrl+alt+up",
"mac": "ctrl+up",
"when": "resourceLangId == easycrypt && config.easycrypt.keybindings.profile == 'proof-general'"
},
{
"command": "easycrypt.goToCursor",
"key": "ctrl+alt+right",
"mac": "ctrl+right",
"when": "resourceLangId == easycrypt && config.easycrypt.keybindings.profile == 'proof-general'"
},
{
"command": "easycrypt.resetProof",
"key": "ctrl+alt+left",
"mac": "ctrl+left",
"when": "resourceLangId == easycrypt && config.easycrypt.keybindings.profile == 'proof-general'"
}
],
"languages": [
{
"id": "easycrypt",
"aliases": [
"EasyCrypt",
"easycrypt"
],
"extensions": [
".ec",
".eca"
],
"configuration": "./language-configuration.json",
"icon": {
"light": "./icons/easycrypt-light.png",
"dark": "./icons/easycrypt-dark.png"
}
}
],
"grammars": [
{
"language": "easycrypt",
"scopeName": "source.easycrypt",
"path": "./syntaxes/easycrypt.tmLanguage.json"
}
],
"configuration": {
"title": "EasyCrypt",
"properties": {
"easycrypt.keybindings.profile": {
"type": "string",
"enum": ["default", "proof-general", "none"],
"enumDescriptions": [
"Default keybindings: Alt+Down/Up/Right/Left for navigation",
"Proof General style: Ctrl+Alt+Down/Up/Right/Left (Ctrl+Down/Up/Right/Left on Mac)",
"No keybindings: Disable all extension-provided keybindings (use VS Code's keyboard shortcuts to set your own)"
],
"default": "default",
"description": "Select a keybinding profile for proof navigation commands. The toolbar buttons in the Proof State view work regardless of this setting.",
"scope": "window"
},
"easycrypt.executablePath": {
"type": "string",
"default": "easycrypt",
"description": "Absolute path to the EasyCrypt binary. If not set, the extension will attempt to find 'easycrypt' in your system PATH.",
"scope": "window"
},
"easycrypt.arguments": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Additional arguments to pass to EasyCrypt on startup (e.g., include paths, flags).",
"scope": "window"
},
"easycrypt.proverArgs": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Arguments specifically for backend provers (Alt-Ergo, Z3, etc.) if passed through EasyCrypt.",
"scope": "window"
},
"easycrypt.communication.channel": {
"type": "string",
"enum": [
"emacs",
"lsp",
"auto"
],
"default": "emacs",
"description": "Select proof communication channel: emacs (cli -emacs), lsp, or auto (safe compatibility-based selection).",
"scope": "window"
},
"easycrypt.lsp.serverArgs": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Additional command-line arguments for EasyCrypt LSP mode.",
"scope": "window"
},
"easycrypt.lsp.trace.server": {
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Trace level for EasyCrypt LSP client/server protocol logging.",
"scope": "window"
},
"easycrypt.lsp.requestTimeoutMs": {
"type": "number",
"default": 30000,
"minimum": 1000,
"maximum": 300000,
"description": "Timeout in milliseconds for EasyCrypt LSP proof/query requests.",
"scope": "window"
},
"easycrypt.lsp.logToFile": {
"type": "boolean",
"default": true,
"description": "Enable EasyCrypt LSP file logging via EASYCRYPT_LSP_LOG=1.",
"scope": "window"
},
"easycrypt.diagnostics.enabled": {
"type": "boolean",
"default": true,
"description": "Enable/disable diagnostics reporting.",
"scope": "window"
},
"easycrypt.diagnostics.liveChecks": {
"type": "boolean",
"default": true,
"description": "Enable live syntax checking as you type. When enabled, the extension will automatically check for errors while editing.",
"scope": "window"
},
"easycrypt.diagnostics.delay": {
"type": "number",
"default": 500,
"minimum": 100,
"maximum": 5000,
"description": "Delay in milliseconds before running a live syntax check after typing stops.",
"scope": "window"
},
"easycrypt.diagnostics.onChange": {
"type": "boolean",
"default": true,
"description": "Run syntax checks when the document content changes.",
"scope": "window"
},
"easycrypt.diagnostics.onSave": {
"type": "boolean",
"default": true,
"description": "Run syntax checks when the document is saved.",
"scope": "window"
},
"easycrypt.verboseLogging": {
"type": "boolean",
"default": false,
"description": "Enable verbose logging to the EasyCrypt output channel. Logs all commands, events, process I/O, and proof state transitions. Useful for debugging.",
"scope": "window"
},
"easycrypt.proofStateView.debug.showEmacsPromptMarker": {
"type": "boolean",
"default": false,
"description": "Show the EasyCrypt cli -emacs prompt marker (e.g. [n|check]>) in the Proof State view for debugging and correlating with Output logs.",
"scope": "window"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"lint": "eslint src",
"pretest": "npm run compile",
"test": "npm run test:unit",
"test:unit": "mocha \"test/unit/**/*.test.js\"",
"test:ui": "node ./test/ui/runUITest.js",
"test:e2e": "npm run test:ui",
"package": "npm run compile && npx --yes @vscode/vsce@3.9.1 package",
"publish": "npx --yes @vscode/vsce@3.9.1 publish",
"publish:patch": "npx --yes @vscode/vsce@3.9.1 publish patch",
"publish:minor": "npx --yes @vscode/vsce@3.9.1 publish minor",
"publish:major": "npx --yes @vscode/vsce@3.9.1 publish major"
},
"devDependencies": {
"@types/node": "^24.12.2",
"@types/vscode": "^1.85.0",
"@typescript-eslint/eslint-plugin": "^8.59.0",
"@typescript-eslint/parser": "^8.59.0",
"@vscode/test-electron": "^2.5.2",
"chai": "^5.1.2",
"eslint": "^9.39.4",
"mocha": "11.3.0",
"typescript": "^5.3.0",
"vscode-oniguruma": "^2.0.1",
"vscode-textmate": "^9.3.2"
},
"dependencies": {
"vscode-languageclient": "^9.0.1"
},
"overrides": {
"serialize-javascript": "^7.0.5"
}
}