-
Notifications
You must be signed in to change notification settings - Fork 20
/
package.json
364 lines (364 loc) · 11.7 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
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
{
"name": "ide-vscode",
"displayName": "Dafny",
"description": "Dafny for Visual Studio Code",
"version": "3.4.2",
"publisher": "dafny-lang",
"repository": {
"type": "git",
"url": "https://github.com/dafny-lang/ide-vscode"
},
"bugs": {
"url": "https://github.com/dafny-lang/ide-vscode/issues"
},
"activationEvents": [
"onLanguage:toml"
],
"qna": false,
"license": "MIT",
"galleryBanner": {
"color": "#FFEC50",
"theme": "light"
},
"icon": "logo.png",
"engines": {
"vscode": "^1.68.0"
},
"categories": [
"Programming Languages"
],
"main": "./dist/extension.js",
"contributes": {
"submenus": [
{
"id": "dafny.context",
"label": "Dafny"
}
],
"menus": {
"editor/context": [
{
"when": "editorTextFocus && editorLangId == dafny",
"submenu": "dafny.context",
"group": "7_Dafny@5"
}
],
"dafny.context": [
{
"when": "editorTextFocus && editorLangId == dafny",
"command": "dafny.build",
"group": "7_Dafny@5"
},
{
"when": "editorTextFocus && editorLangId == dafny",
"command": "dafny.buildCustomArgs",
"group": "7_Dafny@6"
},
{
"when": "editorTextFocus && editorLangId == dafny",
"command": "dafny.run",
"group": "7_Dafny@7"
},
{
"when": "editorTextFocus && editorLangId == dafny",
"command": "dafny.test",
"group": "7_Dafny@8"
},
{
"when": "editorTextFocus && editorLangId == dafny && dafny.counterexampleMenu.CanShowCounterExample",
"command": "dafny.showCounterexample",
"group": "7_Dafny@1"
},
{
"when": "editorTextFocus && editorLangId == dafny && !dafny.counterexampleMenu.CanShowCounterExample",
"command": "dafny.hideCounterexample",
"group": "7_Dafny@2"
},
{
"when": "editorTextFocus && editorLangId == dafny",
"command": "dafny.copyCounterexamples",
"group": "7_Dafny@2"
}
]
},
"keybindings": [
{
"command": "dafny.build",
"key": "ctrl+shift+b",
"mac": "⇧⌘B",
"when": "editorTextFocus && editorLangId == dafny"
},
{
"command": "dafny.run",
"key": "f5",
"mac": "f5",
"when": "editorTextFocus && editorLangId == dafny"
},
{
"command": "dafny.test",
"key": "shift+f5",
"mac": "⇧f5",
"when": "editorTextFocus && editorLangId == dafny"
},
{
"command": "dafny.buildCustomArgs",
"key": "f6",
"mac": "f6",
"when": "editorTextFocus && editorLangId == dafny"
},
{
"command": "dafny.showCounterexample",
"key": "f7",
"when": "editorTextFocus && editorLangId == dafny"
},
{
"command": "dafny.hideCounterexample",
"key": "f8",
"when": "editorTextFocus && editorLangId == dafny"
}
],
"languages": [
{
"id": "dafny",
"aliases": [
"Dafny",
"dafny"
],
"extensions": [
".dfy",
".dfyi"
],
"configuration": "./dafny-language-configuration.json"
}
],
"grammars": [
{
"language": "dafny",
"scopeName": "text.dfy.dafny",
"path": "./syntaxes/Dafny.tmLanguage"
}
],
"configuration": {
"type": "object",
"title": "Dafny extension configuration",
"properties": {
"dafny.automaticVerification": {
"type": "string",
"default": "onchange",
"enum": [
"never",
"onchange",
"onsave"
],
"description": "When Dafny should run verification automatically (requires restart). Notes:\n* If set on 'never', it is always possible to trigger verification of individual declarations manually using the test interface of VSCode if the option 'Display Verification As Tests' is checked\n* In any case but especially if using 'onchange', with versions of Dafny published after June 11, 2023, you can use the `{:only}` attribute on assertions and declarations to restrict verification temporarily"
},
"dafny.verificationTimeLimit": {
"type": "number",
"default": "20",
"description": "Maximum number of time in seconds to verify a document, 0=infinite (requires restart)"
},
"dafny.verificationVirtualCores": {
"type": "number",
"default": "0",
"description": "Maximum number of virtual cores that may be used for verification, 0=auto (requires restart)"
},
"dafny.verificationCachingPolicy": {
"type": "string",
"enum": [
"No caching",
"Basic caching",
"Advanced caching"
],
"enumDescriptions": [
"Reverifies the whole file after each change",
"Keeps a per-procedure cache of verification results",
"Keeps a per-assertion cache of verification results"
],
"default": "No caching",
"description": "EXPERIMENTAL: How Dafny reuses previous verification results as a source file is being edited (requires restart)."
},
"dafny.markGhostStatements": {
"type": "boolean",
"default": "true",
"description": "Mark ghost statements in the code (requires restart and Dafny 3.4.0+)"
},
"dafny.displayGutterStatus": {
"type": "boolean",
"default": "true",
"description": "Display verification status in the gutter (requires restart and Dafny 3.7.0+)"
},
"dafny.displayVerificationAsTests": {
"type": "boolean",
"default": "true",
"description": "Display verification status both in the test panel, and as actionable buttons next to top-level symbols in the editor (requires restart and Dafny 3.8.1+)"
},
"dafny.dafnyPlugins": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "(Deprecated, use repeated --plugin:<path> in Language Server Launch Args) Absolute paths to assemblies to be used as plugins (requires restart and Dafny 3.4.0+).\nExample 1: /user/home/dafnyplugin.dll\nExample 2: /user/home/dafnyplugin.dll,oneArgument\nExample 3: /user/home/dafnyplugin.dll,\"argument with space and \\\" escaped quote\" secondArgument"
},
"dafny.languageServerLaunchArgs": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Optional array of strings to pass to the language server. Only works if the Dafny version is 3.10 or greater. Available options can be seen using 'dafny server --help'"
},
"dafny.cliPath": {
"type": "string",
"default": null,
"description": "Path to Dafny.exe, Dafny.dll or a Dafny executable. Only used when 'custom' is the chosen Dafny version. The Dafny version must be 3.10 or greater."
},
"dafny.compilerOutputDir": {
"type": "string",
"default": "bin",
"description": "Absolute or relative path to the compilation output directory."
},
"dafny.runArgs": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Optional array of strings as Dafny run and build arguments"
},
"dafny.version": {
"type": "string",
"enum": [
"latest stable release",
"4.9.0",
"4.8.1",
"4.8.0",
"4.7.0",
"4.6.0",
"4.5.0",
"4.4.0",
"4.3.0",
"4.2.0",
"4.1.0",
"4.0.0",
"3.13.1",
"3.12.0",
"3.11.0",
"3.10.0",
"3.9.1",
"3.9.0",
"3.8.1",
"3.8.0",
"3.7.3",
"3.6.0",
"3.5.0",
"3.4.2",
"3.3.0",
"3.2.0",
"custom",
"latest nightly"
],
"default": "latest stable release",
"description": "The preferred Dafny version to use (requires restart). Select 'custom' and configure the option 'Cli Path' to use the Dafny binary at that location."
},
"dafny.dotnetExecutablePath": {
"type": "string",
"description": "The absolute path of the dotnet binary. Only necessary if dotnet is not in system PATH (you'll get an error if that's the case)."
},
"dafny.colorCounterexamples": {
"type": "object",
"default": {
"backgroundColor": null,
"fontColor": null
},
"description": "Customize the color (HEX) of counterexamples. There are two default colors: for dark theme (#0d47a1, #e3f2fd) and light theme (#bbdefb, #102027). This color setting will override both defaults."
},
"dafny.terminalCommandPrefix": {
"type": "string",
"default": null,
"description": "The prefix to use when executing a command in the VS Code terminal. Defaults to & on windows."
}
}
},
"commands": [
{
"command": "dafny.build",
"title": "Dafny: Build"
},
{
"command": "dafny.buildCustomArgs",
"title": "Dafny: Build with Custom Arguments"
},
{
"command": "dafny.test",
"title": "Dafny: Test"
},
{
"command": "dafny.run",
"title": "Dafny: Run"
},
{
"command": "dafny.showCounterexample",
"title": "Dafny: Show Counterexample (experimental)"
},
{
"command": "dafny.hideCounterexample",
"title": "Dafny: Hide Counterexample (experimental)"
},
{
"command": "dafny.copyCounterexamples",
"title": "Dafny: Copy Counterexamples to Clipboard (experimental)"
},
{
"command": "dafny.restartServer",
"title": "Dafny: Restart server"
}
]
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src --ext ts --max-warnings 0",
"test": "node ./out/src/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^7.1.4",
"@types/mocha": "^9.1.0",
"@types/node": "^16.11.43",
"@types/promise.any": "^2.0.0",
"@types/proxyquire": "^1.3.28",
"@types/vscode": "^1.68.0",
"@types/which": "^2.0.1",
"@typescript-eslint/eslint-plugin": "^4.31.1",
"@typescript-eslint/parser": "^4.31.1",
"@vscode/test-electron": "^1.6.2",
"eslint": "^7.32.0",
"glob": "^7.1.7",
"mocha": "^9.2.0",
"ts-loader": "^9.2.5",
"typescript": "^4.4.3",
"webpack": "^5.76.0",
"webpack-cli": "^4.10.0"
},
"dependencies": {
"cross-fetch": "^3.1.5",
"extract-zip": "^2.0.1",
"got": "^11.8.2",
"promise.any": "^2.0.2",
"proxyquire": "^2.1.3",
"vscode-languageclient": "^9.0.0",
"vscode-uri": "^3.0.2",
"which": "^2.0.2"
},
"__metadata": {
"id": "36e6ec4b-cd6e-4792-8088-91e0631e4b3d",
"publisherDisplayName": "dafny-lang",
"publisherId": "77351d22-0a7b-4a0a-b0dc-d10fc29768e1",
"isPreReleaseVersion": false
}
}