lean4monaco 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/README.md +1 -3
  2. package/dist/vscode-lean4/vscode-lean4/src/utils/depInstaller.d.ts +81 -0
  3. package/dist/vscode-lean4/vscode-lean4/src/utils/depInstaller.js +372 -0
  4. package/package.json +1 -1
  5. package/dist/JuliaMono-Regular.ttf +0 -0
  6. package/dist/lean4-infoview/codicon.ttf +0 -0
  7. package/dist/lean4-infoview/esm-shims/react-dom.d.ts +0 -5
  8. package/dist/lean4-infoview/esm-shims/react-jsx-runtime.d.ts +0 -5
  9. package/dist/lean4-infoview/esm-shims/react.d.ts +0 -5
  10. package/dist/lean4-infoview/index.css +0 -4161
  11. package/dist/lean4-infoview/index.d.ts +0 -16
  12. package/dist/lean4-infoview/index.development.js +0 -37312
  13. package/dist/lean4-infoview/index.production.min.js +0 -1528
  14. package/dist/lean4-infoview/infoview/collapsing.d.ts +0 -12
  15. package/dist/lean4-infoview/infoview/contexts.d.ts +0 -10
  16. package/dist/lean4-infoview/infoview/editorConnection.d.ts +0 -22
  17. package/dist/lean4-infoview/infoview/errors.d.ts +0 -14
  18. package/dist/lean4-infoview/infoview/event.d.ts +0 -33
  19. package/dist/lean4-infoview/infoview/goalLocation.d.ts +0 -61
  20. package/dist/lean4-infoview/infoview/goals.d.ts +0 -46
  21. package/dist/lean4-infoview/infoview/info.d.ts +0 -18
  22. package/dist/lean4-infoview/infoview/infos.d.ts +0 -2
  23. package/dist/lean4-infoview/infoview/interactiveCode.d.ts +0 -19
  24. package/dist/lean4-infoview/infoview/main.d.ts +0 -13
  25. package/dist/lean4-infoview/infoview/messages.d.ts +0 -19
  26. package/dist/lean4-infoview/infoview/rpcSessions.d.ts +0 -11
  27. package/dist/lean4-infoview/infoview/serverVersion.d.ts +0 -10
  28. package/dist/lean4-infoview/infoview/tooltips.d.ts +0 -32
  29. package/dist/lean4-infoview/infoview/traceExplorer.d.ts +0 -11
  30. package/dist/lean4-infoview/infoview/userWidget.d.ts +0 -39
  31. package/dist/lean4-infoview/infoview/util.d.ts +0 -144
  32. package/dist/lean4-infoview/loader.d.ts +0 -20
  33. package/dist/lean4-infoview/loader.development.js +0 -1006
  34. package/dist/lean4-infoview/loader.production.min.js +0 -1
  35. package/dist/lean4-infoview/react-dom.development.js +0 -30537
  36. package/dist/lean4-infoview/react-dom.production.min.js +0 -21
  37. package/dist/lean4-infoview/react-jsx-runtime.development.js +0 -1362
  38. package/dist/lean4-infoview/react-jsx-runtime.production.min.js +0 -1
  39. package/dist/lean4-infoview/react.development.js +0 -2823
  40. package/dist/lean4-infoview/react.production.min.js +0 -1
  41. package/dist/monaco-lean4/vscode-lean4/package.json +0 -944
  42. package/dist/monaco-lean4/vscode-lean4/src/abbreviation/AbbreviationFeature.d.ts +0 -9
  43. package/dist/monaco-lean4/vscode-lean4/src/abbreviation/AbbreviationFeature.js +0 -20
  44. package/dist/monaco-lean4/vscode-lean4/src/abbreviation/AbbreviationHoverProvider.d.ts +0 -12
  45. package/dist/monaco-lean4/vscode-lean4/src/abbreviation/AbbreviationHoverProvider.js +0 -40
  46. package/dist/monaco-lean4/vscode-lean4/src/abbreviation/AbbreviationRewriterFeature.d.ts +0 -20
  47. package/dist/monaco-lean4/vscode-lean4/src/abbreviation/AbbreviationRewriterFeature.js +0 -79
  48. package/dist/monaco-lean4/vscode-lean4/src/abbreviation/VSCodeAbbreviationConfig.d.ts +0 -13
  49. package/dist/monaco-lean4/vscode-lean4/src/abbreviation/VSCodeAbbreviationConfig.js +0 -29
  50. package/dist/monaco-lean4/vscode-lean4/src/abbreviation/VSCodeAbbreviationRewriter.d.ts +0 -28
  51. package/dist/monaco-lean4/vscode-lean4/src/abbreviation/VSCodeAbbreviationRewriter.js +0 -124
  52. package/dist/monaco-lean4/vscode-lean4/src/config.d.ts +0 -33
  53. package/dist/monaco-lean4/vscode-lean4/src/config.js +0 -119
  54. package/dist/monaco-lean4/vscode-lean4/src/diagnostics/setupNotifs.d.ts +0 -27
  55. package/dist/monaco-lean4/vscode-lean4/src/diagnostics/setupNotifs.js +0 -133
  56. package/dist/monaco-lean4/vscode-lean4/src/infoview.d.ts +0 -69
  57. package/dist/monaco-lean4/vscode-lean4/src/infoview.js +0 -711
  58. package/dist/monaco-lean4/vscode-lean4/src/leanclient.d.ts +0 -67
  59. package/dist/monaco-lean4/vscode-lean4/src/leanclient.js +0 -443
  60. package/dist/monaco-lean4/vscode-lean4/src/rpc.d.ts +0 -16
  61. package/dist/monaco-lean4/vscode-lean4/src/rpc.js +0 -102
  62. package/dist/monaco-lean4/vscode-lean4/src/taskgutter.d.ts +0 -11
  63. package/dist/monaco-lean4/vscode-lean4/src/taskgutter.js +0 -130
  64. package/dist/monaco-lean4/vscode-lean4/src/utils/batch.d.ts +0 -37
  65. package/dist/monaco-lean4/vscode-lean4/src/utils/batch.js +0 -203
  66. package/dist/monaco-lean4/vscode-lean4/src/utils/clientProvider.d.ts +0 -41
  67. package/dist/monaco-lean4/vscode-lean4/src/utils/clientProvider.js +0 -205
  68. package/dist/monaco-lean4/vscode-lean4/src/utils/converters.d.ts +0 -16
  69. package/dist/monaco-lean4/vscode-lean4/src/utils/converters.js +0 -129
  70. package/dist/monaco-lean4/vscode-lean4/src/utils/elan.d.ts +0 -3
  71. package/dist/monaco-lean4/vscode-lean4/src/utils/elan.js +0 -4
  72. package/dist/monaco-lean4/vscode-lean4/src/utils/envPath.d.ts +0 -21
  73. package/dist/monaco-lean4/vscode-lean4/src/utils/envPath.js +0 -53
  74. package/dist/monaco-lean4/vscode-lean4/src/utils/exturi.d.ts +0 -35
  75. package/dist/monaco-lean4/vscode-lean4/src/utils/exturi.js +0 -136
  76. package/dist/monaco-lean4/vscode-lean4/src/utils/fsHelper.d.ts +0 -17
  77. package/dist/monaco-lean4/vscode-lean4/src/utils/fsHelper.js +0 -36
  78. package/dist/monaco-lean4/vscode-lean4/src/utils/leanInstaller.d.ts +0 -37
  79. package/dist/monaco-lean4/vscode-lean4/src/utils/leanInstaller.js +0 -210
  80. package/dist/monaco-lean4/vscode-lean4/src/utils/logger.d.ts +0 -7
  81. package/dist/monaco-lean4/vscode-lean4/src/utils/logger.js +0 -20
  82. package/dist/monaco-lean4/vscode-lean4/src/utils/notifs.d.ts +0 -24
  83. package/dist/monaco-lean4/vscode-lean4/src/utils/notifs.js +0 -110
  84. package/dist/monaco-lean4/vscode-lean4/src/utils/projectInfo.d.ts +0 -9
  85. package/dist/monaco-lean4/vscode-lean4/src/utils/projectInfo.js +0 -125
  86. package/dist/useragent.d.ts +0 -1
  87. package/dist/useragent.js +0 -31
  88. package/dist/vscode.css +0 -7
@@ -1,944 +0,0 @@
1
- {
2
- "name": "lean4",
3
- "displayName": "lean4",
4
- "description": "Lean 4 language support for VS Code",
5
- "version": "0.0.168",
6
- "publisher": "leanprover",
7
- "engines": {
8
- "vscode": "^1.75.0"
9
- },
10
- "categories": [
11
- "Programming Languages"
12
- ],
13
- "keywords": [
14
- "multi-root ready"
15
- ],
16
- "repository": {
17
- "type": "git",
18
- "url": "https://github.com/leanprover-community/vscode-lean4.git"
19
- },
20
- "contributes": {
21
- "configuration": {
22
- "type": "object",
23
- "title": "Lean 4",
24
- "properties": {
25
- "lean4.input.enabled": {
26
- "type": "boolean",
27
- "default": true,
28
- "markdownDescription": "Enable Lean input mode."
29
- },
30
- "lean4.input.customTranslations": {
31
- "type": "object",
32
- "items": {
33
- "type": "string",
34
- "description": "Unicode character to translate to"
35
- },
36
- "default": {},
37
- "markdownDescription": "Add additional input Unicode translations. Example: `{\"foo\": \"☺\"}` will correct `\\foo` to `☺`."
38
- },
39
- "lean4.input.languages": {
40
- "type": "array",
41
- "default": [
42
- "lean4"
43
- ],
44
- "markdownDescription": "Enable Lean Unicode input in other file types.",
45
- "items": {
46
- "type": "string",
47
- "description": "the name of a language, e.g. 'lean4', 'markdown'"
48
- }
49
- },
50
- "lean4.input.leader": {
51
- "type": "string",
52
- "default": "\\",
53
- "markdownDescription": "Leader key to trigger input mode."
54
- },
55
- "lean4.input.eagerReplacementEnabled": {
56
- "type": "boolean",
57
- "default": true,
58
- "markdownDescription": "Enable eager replacement of abbreviations that uniquely identify a symbol."
59
- },
60
- "lean4.fallBackToStringOccurrenceHighlighting": {
61
- "type": "boolean",
62
- "description": "Fall back to string-based occurrence highlighting when there are no semantic symbol occurrences from the Lean language server to highlight.",
63
- "default": false
64
- },
65
- "lean4.automaticallyBuildDependencies": {
66
- "type": "boolean",
67
- "default": false,
68
- "markdownDescription": "Enable automatically building dependencies when opening a file. In Lean versions pre-4.2.0, dependencies are always built automatically regardless of this setting."
69
- },
70
- "lean4.envPathExtensions": {
71
- "type": "array",
72
- "default": [],
73
- "markdownDescription": "Additional entries to add to the PATH variable of the Lean 4 VS Code extension process and any of its child processes.",
74
- "items": {
75
- "type": "string",
76
- "description": "Entry to add to the PATH variable"
77
- }
78
- },
79
- "lean4.serverArgs": {
80
- "type": "array",
81
- "default": [],
82
- "description": "Arguments to pass to the Lean 4 server.",
83
- "items": {
84
- "type": "string",
85
- "description": "an argument to pass to the server"
86
- }
87
- },
88
- "lean4.serverLogging.enabled": {
89
- "type": "boolean",
90
- "default": false,
91
- "description": "Enable Lean 4 server logging."
92
- },
93
- "lean4.serverLogging.path": {
94
- "type": "string",
95
- "default": ".",
96
- "description": "Path to the directory where Lean 4 server log files are stored.",
97
- "scope": "machine-overridable"
98
- },
99
- "lean4.autofocusOutput": {
100
- "type": "boolean",
101
- "default": false,
102
- "description": "Automatically show the Output panel when the Lean 4 server prints a new message."
103
- },
104
- "lean4.infoview.autoOpen": {
105
- "type": "boolean",
106
- "default": true,
107
- "markdownDescription": "Open infoview when Lean extension is activated for the first time."
108
- },
109
- "lean4.infoview.autoOpenShowsGoal": {
110
- "type": "boolean",
111
- "default": true,
112
- "markdownDescription": "When auto-opened, the infoview shows goal and messages for the current line (instead of all messages for the whole file)."
113
- },
114
- "lean4.infoview.allErrorsOnLine": {
115
- "type": "boolean",
116
- "default": true,
117
- "markdownDescription": "Show all errors on the current line, instead of just the ones to the right of the cursor."
118
- },
119
- "lean4.infoview.debounceTime": {
120
- "type": "number",
121
- "default": 50,
122
- "markdownDescription": "How long (in milliseconds) the infoview waits before displaying new information after the cursor has stopped moving. The optimal value depends on your machine - try experimenting."
123
- },
124
- "lean4.infoview.style": {
125
- "type": "string",
126
- "default": "",
127
- "markdownDescription": "Add an additional CSS snippet to the infoview."
128
- },
129
- "lean4.infoview.showExpectedType": {
130
- "type": "boolean",
131
- "default": true,
132
- "markdownDescription": "Show the expected type by default."
133
- },
134
- "lean4.infoview.showGoalNames": {
135
- "type": "boolean",
136
- "default": true,
137
- "markdownDescription": "Show goal names (e.g. `case inl`) in the infoview."
138
- },
139
- "lean4.infoview.emphasizeFirstGoal": {
140
- "type": "boolean",
141
- "default": false,
142
- "markdownDescription": "Display goals other than the main goal in a smaller font size."
143
- },
144
- "lean4.infoview.reverseTacticState": {
145
- "type": "boolean",
146
- "default": false,
147
- "markdownDescription": "Default to showing the goal type first and then the local context."
148
- },
149
- "lean4.infoview.showTooltipOnHover": {
150
- "type": "boolean",
151
- "default": true,
152
- "markdownDescription": "Show the tooltip for an interactive element (e.g. a subexpression) when the pointer hovers over that element. When disabled, the element must be clicked for the tooltip to show up."
153
- },
154
- "lean4.elaborationDelay": {
155
- "type": "number",
156
- "default": 200,
157
- "description": "Time (in milliseconds) which must pass since latest edit until elaboration begins. Lower values may make editing feel faster at the cost of higher CPU usage."
158
- },
159
- "lean4.showSetupWarnings": {
160
- "type": "boolean",
161
- "default": true,
162
- "markdownDescription": "Show warning notifications when the Lean setup has warning-level issues."
163
- },
164
- "lean4.alwaysShowTitleBarMenu": {
165
- "type": "boolean",
166
- "default": true,
167
- "markdownDescription": "Always display the Lean extension title bar menu in the top right. This helps beginners create and open Lean projects after launching an empty instance of VS Code, but may not be desirable for anyone who uses VS Code for things other than Lean."
168
- }
169
- }
170
- },
171
- "commands": [
172
- {
173
- "command": "lean4.restartServer",
174
- "category": "Lean 4",
175
- "title": "Server: Restart Server",
176
- "description": "Restart the Lean server (for all files)."
177
- },
178
- {
179
- "command": "lean4.stopServer",
180
- "category": "Lean 4",
181
- "title": "Server: Stop Server",
182
- "description": "Stop the Lean server (for all files)."
183
- },
184
- {
185
- "command": "lean4.restartFile",
186
- "category": "Lean 4",
187
- "title": "Server: Restart File",
188
- "description": "Restarts the Lean server for the file that is currently focused, refreshing the dependencies."
189
- },
190
- {
191
- "command": "lean4.refreshFileDependencies",
192
- "category": "Lean 4",
193
- "title": "Server: Refresh File Dependencies",
194
- "description": "Restarts the Lean server for the file that is currently focused to refresh the dependencies."
195
- },
196
- {
197
- "command": "lean4.input.convert",
198
- "category": "Lean 4",
199
- "title": "Input: Convert Current Abbreviation",
200
- "description": "Converts the current abbreviation (e.g. \\lam)."
201
- },
202
- {
203
- "command": "lean4.displayGoal",
204
- "category": "Lean 4",
205
- "title": "Infoview: Display Goal",
206
- "description": "Display the goal and any messages at the current position in the infoview.",
207
- "icon": {
208
- "dark": "./media/display-goal-dark.svg",
209
- "light": "./media/display-goal-light.svg"
210
- }
211
- },
212
- {
213
- "command": "lean4.toggleInfoview",
214
- "category": "Lean 4",
215
- "title": "Infoview: Toggle Infoview",
216
- "description": "Toggle whether the infoview is displayed."
217
- },
218
- {
219
- "command": "lean4.displayList",
220
- "category": "Lean 4",
221
- "title": "Infoview: Toggle \"All Messages\"",
222
- "description": "Toggles the \"All Messages\" panel in the infoview."
223
- },
224
- {
225
- "command": "lean4.infoView.copyToComment",
226
- "category": "Lean 4",
227
- "title": "Infoview: Copy Contents to Comment",
228
- "description": "Copy the contents of the currently active tactic state panel to a new comment on the previous line.",
229
- "icon": {
230
- "dark": "./media/copy-to-comment-dark.svg",
231
- "light": "./media/copy-to-comment-light.svg"
232
- }
233
- },
234
- {
235
- "command": "lean4.infoView.toggleStickyPosition",
236
- "category": "Lean 4",
237
- "title": "Infoview: Toggle Pin",
238
- "description": "Create or remove a tactic state panel pinned to show the goal at the current position."
239
- },
240
- {
241
- "command": "lean4.infoView.toggleUpdating",
242
- "category": "Lean 4",
243
- "title": "Infoview: Toggle Updating",
244
- "description": "Pause / Continue live updating of the main tactic state widget."
245
- },
246
- {
247
- "command": "lean4.infoView.toggleExpectedType",
248
- "category": "Lean 4",
249
- "title": "Infoview: Toggle Expected Type",
250
- "description": "Toggle the display of expected type."
251
- },
252
- {
253
- "command": "lean4.infoview.goToDefinition",
254
- "category": "Lean 4",
255
- "title": "Go to Definition",
256
- "description": "This command is an implementation detail of the 'Go to Definition' context menu option in the infoview."
257
- },
258
- {
259
- "command": "lean4.loogle.search",
260
- "category": "Lean 4",
261
- "title": "Loogle: Search",
262
- "description": "Show LoogleView"
263
- },
264
- {
265
- "command": "lean4.troubleshooting.showOutput",
266
- "category": "Lean 4",
267
- "title": "Troubleshooting: Show Output",
268
- "description": "Show output channel containing all progress updates and errors of commands"
269
- },
270
- {
271
- "command": "lean4.troubleshooting.showSetupInformation",
272
- "category": "Lean 4",
273
- "title": "Troubleshooting: Show Setup Information",
274
- "description": "Show setup information for the environment that the VS Code extension is running in"
275
- },
276
- {
277
- "command": "lean4.docs.showSetupGuide",
278
- "category": "Lean 4",
279
- "title": "Docs: Show Setup Guide",
280
- "description": "Show 'Welcome' page containing a checklist of steps to install Lean 4"
281
- },
282
- {
283
- "command": "lean4.docs.showExtensionManual",
284
- "category": "Lean 4",
285
- "title": "Docs: Show Manual",
286
- "description": "Show manual for the Lean 4 VS Code extension"
287
- },
288
- {
289
- "command": "lean4.docs.showDocResources",
290
- "category": "Lean 4",
291
- "title": "Docs: Show Documentation Resources",
292
- "description": "Show available online documentation resources"
293
- },
294
- {
295
- "command": "lean4.docs.showAbbreviations",
296
- "category": "Lean 4",
297
- "title": "Docs: Show Unicode Input Abbreviations",
298
- "description": "Shows all abbreviations for the unicode input mechanism"
299
- },
300
- {
301
- "command": "lean4.setup.installElan",
302
- "category": "Lean 4",
303
- "title": "Setup: Install Elan",
304
- "description": "Install Lean's version manager 'Elan'"
305
- },
306
- {
307
- "command": "lean4.project.createStandaloneProject",
308
- "category": "Lean 4",
309
- "title": "Project: Create Standalone Project…",
310
- "description": "Create a new Lean project that does not depend on any other projects"
311
- },
312
- {
313
- "command": "lean4.project.createMathlibProject",
314
- "category": "Lean 4",
315
- "title": "Project: Create Project Using Mathlib…",
316
- "description": "Create a new Lean math formalization project using Mathlib"
317
- },
318
- {
319
- "command": "lean4.project.open",
320
- "category": "Lean 4",
321
- "title": "Project: Open Local Project…",
322
- "description": "Opens a local Lean project"
323
- },
324
- {
325
- "command": "lean4.project.clone",
326
- "category": "Lean 4",
327
- "title": "Project: Download Project…",
328
- "description": "Download an existing Lean project using `git clone`"
329
- },
330
- {
331
- "command": "lean4.project.build",
332
- "category": "Lean 4",
333
- "title": "Project: Build Project",
334
- "description": "Build the current project"
335
- },
336
- {
337
- "command": "lean4.project.clean",
338
- "category": "Lean 4",
339
- "title": "Project: Clean Project",
340
- "description": "Clean the current project, removing all build artifacts"
341
- },
342
- {
343
- "command": "lean4.project.updateDependency",
344
- "category": "Lean 4",
345
- "title": "Project: Update Dependency…",
346
- "description": "Updates a dependency of the current project to the most recent version available for the branch pinned in 'lakefile.lean'."
347
- },
348
- {
349
- "command": "lean4.project.fetchCache",
350
- "category": "Lean 4",
351
- "title": "Project: Fetch Mathlib Build Cache",
352
- "description": "Downloads cached Mathlib build artifacts to avoid full elaboration"
353
- }
354
- ],
355
- "languages": [
356
- {
357
- "id": "lean4",
358
- "configuration": "./language-configuration.json",
359
- "extensions": [
360
- ".lean"
361
- ]
362
- },
363
- {
364
- "id": "lean4markdown",
365
- "aliases": [],
366
- "extensions": [
367
- ".lean4markdown"
368
- ],
369
- "configuration": "./language-configuration.json"
370
- }
371
- ],
372
- "grammars": [
373
- {
374
- "language": "lean4",
375
- "scopeName": "source.lean4",
376
- "path": "./syntaxes/lean4.json"
377
- },
378
- {
379
- "language": "lean4markdown",
380
- "scopeName": "source.lean4.markdown",
381
- "path": "./syntaxes/lean4-markdown.json"
382
- },
383
- {
384
- "scopeName": "markdown.lean4.codeblock",
385
- "path": "./syntaxes/codeblock.json",
386
- "injectTo": [
387
- "text.html.markdown"
388
- ],
389
- "embeddedLanguages": {
390
- "meta.embedded.block.lean4": "lean4"
391
- }
392
- }
393
- ],
394
- "keybindings": [
395
- {
396
- "command": "lean4.input.convert",
397
- "key": "tab",
398
- "mac": "tab",
399
- "when": "editorTextFocus && lean4.input.isActive"
400
- },
401
- {
402
- "command": "lean4.restartFile",
403
- "key": "ctrl+shift+x",
404
- "mac": "cmd+shift+x",
405
- "when": "lean4.isLeanFeatureSetActive"
406
- },
407
- {
408
- "command": "lean4.toggleInfoview",
409
- "key": "ctrl+shift+enter",
410
- "mac": "cmd+shift+enter",
411
- "when": "lean4.isLeanFeatureSetActive"
412
- },
413
- {
414
- "command": "lean4.displayList",
415
- "key": "ctrl+shift+alt+enter",
416
- "mac": "cmd+shift+alt+enter",
417
- "when": "lean4.isLeanFeatureSetActive"
418
- },
419
- {
420
- "command": "lean4.loogle.search",
421
- "key": "ctrl+k ctrl+s",
422
- "mac": "cmd+k cmd+s",
423
- "when": "lean4.isLeanFeatureSetActive"
424
- }
425
- ],
426
- "colors": [
427
- {
428
- "id": "lean4.infoView.hypothesisName",
429
- "description": "The color used to display hypothesis names in the infoview",
430
- "defaults": {
431
- "light": "#cc7a00",
432
- "dark": "#ffcc00",
433
- "highContrast": "foreground",
434
- "highContrastLight": "foreground"
435
- }
436
- },
437
- {
438
- "id": "lean4.infoView.inaccessibleHypothesisName",
439
- "description": "The color used to display inaccessible hypothesis names in the infoview",
440
- "defaults": {
441
- "light": "editor.foreground",
442
- "dark": "editor.foreground",
443
- "highContrast": "editor.foreground",
444
- "highContrastLight": "editor.foreground"
445
- }
446
- },
447
- {
448
- "id": "lean4.infoView.goalCount",
449
- "description": "The color used to display the goal count in the infoview (e.g. \"1 goal\")",
450
- "defaults": {
451
- "light": "#367cb6",
452
- "dark": "#569cd6",
453
- "highContrast": "terminal.ansiBlue",
454
- "highContrastLight": "terminal.ansiBlue"
455
- }
456
- },
457
- {
458
- "id": "lean4.infoView.turnstile",
459
- "description": "The color used to display the turnstile (⊢) in the infoview",
460
- "defaults": {
461
- "light": "#367cb6",
462
- "dark": "#569cd6",
463
- "highContrast": "terminal.ansiBlue",
464
- "highContrastLight": "terminal.ansiBlue"
465
- }
466
- },
467
- {
468
- "id": "lean4.infoView.caseLabel",
469
- "description": "The color used to display the names of individual proof cases in the infoview",
470
- "defaults": {
471
- "light": "#1f7a1f",
472
- "dark": "#a1df90",
473
- "highContrast": "terminal.ansiGreen",
474
- "highContrastLight": "terminal.ansiGreen"
475
- }
476
- }
477
- ],
478
- "menus": {
479
- "commandPalette": [
480
- {
481
- "command": "lean4.restartServer",
482
- "when": "lean4.isLeanFeatureSetActive"
483
- },
484
- {
485
- "command": "lean4.stopServer",
486
- "when": "lean4.isLeanFeatureSetActive"
487
- },
488
- {
489
- "command": "lean4.restartFile",
490
- "when": "lean4.isLeanFeatureSetActive"
491
- },
492
- {
493
- "command": "lean4.refreshFileDependencies",
494
- "when": "lean4.isLeanFeatureSetActive"
495
- },
496
- {
497
- "command": "lean4.input.convert",
498
- "when": "lean4.isLeanFeatureSetActive && lean4.input.isActive"
499
- },
500
- {
501
- "command": "lean4.displayGoal",
502
- "when": "lean4.isLeanFeatureSetActive"
503
- },
504
- {
505
- "command": "lean4.toggleInfoview",
506
- "when": "lean4.isLeanFeatureSetActive"
507
- },
508
- {
509
- "command": "lean4.displayList",
510
- "when": "lean4.isLeanFeatureSetActive"
511
- },
512
- {
513
- "command": "lean4.infoView.copyToComment",
514
- "when": "lean4.isLeanFeatureSetActive"
515
- },
516
- {
517
- "command": "lean4.infoView.toggleStickyPosition",
518
- "when": "lean4.isLeanFeatureSetActive"
519
- },
520
- {
521
- "command": "lean4.infoView.toggleUpdating",
522
- "when": "lean4.isLeanFeatureSetActive"
523
- },
524
- {
525
- "command": "lean4.infoView.toggleExpectedType",
526
- "when": "lean4.isLeanFeatureSetActive"
527
- },
528
- {
529
- "command": "lean4.infoview.goToDefinition",
530
- "when": "false"
531
- },
532
- {
533
- "command": "lean4.loogle.search"
534
- },
535
- {
536
- "command": "lean4.troubleshooting.showOutput"
537
- },
538
- {
539
- "command": "lean4.troubleshooting.showSetupInformation"
540
- },
541
- {
542
- "command": "lean4.docs.showSetupGuide"
543
- },
544
- {
545
- "command": "lean4.docs.showExtensionManual"
546
- },
547
- {
548
- "command": "lean4.docs.showDocResources"
549
- },
550
- {
551
- "command": "lean4.docs.showAbbreviations"
552
- },
553
- {
554
- "command": "lean4.setup.installElan"
555
- },
556
- {
557
- "command": "lean4.project.createStandaloneProject"
558
- },
559
- {
560
- "command": "lean4.project.createMathlibProject"
561
- },
562
- {
563
- "command": "lean4.project.open"
564
- },
565
- {
566
- "command": "lean4.project.clone"
567
- },
568
- {
569
- "command": "lean4.project.build",
570
- "when": "lean4.isLeanFeatureSetActive"
571
- },
572
- {
573
- "command": "lean4.project.clean",
574
- "when": "lean4.isLeanFeatureSetActive"
575
- },
576
- {
577
- "command": "lean4.project.updateDependency",
578
- "when": "lean4.isLeanFeatureSetActive"
579
- },
580
- {
581
- "command": "lean4.project.fetchCache",
582
- "when": "lean4.isLeanFeatureSetActive"
583
- }
584
- ],
585
- "editor/title": [
586
- {
587
- "submenu": "lean4.titlebar",
588
- "when": "config.lean4.alwaysShowTitleBarMenu || lean4.isLeanFeatureSetActive",
589
- "group": "navigation@0"
590
- }
591
- ],
592
- "lean4.titlebar": [
593
- {
594
- "submenu": "lean4.titlebar.newProject",
595
- "when": "config.lean4.alwaysShowTitleBarMenu || lean4.isLeanFeatureSetActive",
596
- "group": "1_setup@1"
597
- },
598
- {
599
- "submenu": "lean4.titlebar.openProject",
600
- "when": "config.lean4.alwaysShowTitleBarMenu || lean4.isLeanFeatureSetActive",
601
- "group": "1_setup@1"
602
- },
603
- {
604
- "command": "lean4.restartFile",
605
- "when": "lean4.isLeanFeatureSetActive",
606
- "group": "2_server@1"
607
- },
608
- {
609
- "command": "lean4.restartServer",
610
- "when": "lean4.isLeanFeatureSetActive",
611
- "group": "2_server@2"
612
- },
613
- {
614
- "command": "lean4.toggleInfoview",
615
- "when": "lean4.isLeanFeatureSetActive",
616
- "group": "3_infoview@1"
617
- },
618
- {
619
- "command": "lean4.loogle.search",
620
- "when": "config.lean4.alwaysShowTitleBarMenu || lean4.isLeanFeatureSetActive",
621
- "group": "4_loogle@1"
622
- },
623
- {
624
- "command": "lean4.troubleshooting.showOutput",
625
- "when": "config.lean4.alwaysShowTitleBarMenu || lean4.isLeanFeatureSetActive",
626
- "group": "5_troubleshooting@1"
627
- },
628
- {
629
- "command": "lean4.troubleshooting.showSetupInformation",
630
- "when": "config.lean4.alwaysShowTitleBarMenu || lean4.isLeanFeatureSetActive",
631
- "group": "5_troubleshooting@2"
632
- },
633
- {
634
- "submenu": "lean4.titlebar.versions",
635
- "when": "config.lean4.alwaysShowTitleBarMenu || lean4.isLeanFeatureSetActive",
636
- "group": "6_versions@1"
637
- },
638
- {
639
- "submenu": "lean4.titlebar.projectActions",
640
- "when": "config.lean4.alwaysShowTitleBarMenu || lean4.isLeanFeatureSetActive",
641
- "group": "7_projectActions@1"
642
- },
643
- {
644
- "submenu": "lean4.titlebar.documentation",
645
- "when": "config.lean4.alwaysShowTitleBarMenu || lean4.isLeanFeatureSetActive",
646
- "group": "8_documentation@1"
647
- }
648
- ],
649
- "lean4.titlebar.newProject": [
650
- {
651
- "command": "lean4.project.createStandaloneProject",
652
- "when": "config.lean4.alwaysShowTitleBarMenu || lean4.isLeanFeatureSetActive",
653
- "group": "1_newProject@1"
654
- },
655
- {
656
- "command": "lean4.project.createMathlibProject",
657
- "when": "config.lean4.alwaysShowTitleBarMenu || lean4.isLeanFeatureSetActive",
658
- "group": "1_newProject@2"
659
- }
660
- ],
661
- "lean4.titlebar.openProject": [
662
- {
663
- "command": "lean4.project.open",
664
- "when": "config.lean4.alwaysShowTitleBarMenu || lean4.isLeanFeatureSetActive",
665
- "group": "1_openProject@1"
666
- },
667
- {
668
- "command": "lean4.project.clone",
669
- "when": "config.lean4.alwaysShowTitleBarMenu || lean4.isLeanFeatureSetActive",
670
- "group": "1_openProject@2"
671
- }
672
- ],
673
- "lean4.titlebar.versions": [
674
- {
675
- "command": "lean4.setup.installElan",
676
- "when": "config.lean4.alwaysShowTitleBarMenu || lean4.isLeanFeatureSetActive",
677
- "group": "1_setup@1"
678
- }
679
- ],
680
- "lean4.titlebar.projectActions": [
681
- {
682
- "command": "lean4.project.build",
683
- "when": "lean4.isLeanFeatureSetActive",
684
- "group": "1_projectActions@1"
685
- },
686
- {
687
- "command": "lean4.project.clean",
688
- "when": "lean4.isLeanFeatureSetActive",
689
- "group": "1_projectActions@2"
690
- },
691
- {
692
- "command": "lean4.project.updateDependency",
693
- "when": "lean4.isLeanFeatureSetActive",
694
- "group": "1_projectActions@3"
695
- },
696
- {
697
- "command": "lean4.project.fetchCache",
698
- "when": "lean4.isLeanFeatureSetActive",
699
- "group": "2_mathlibActions@1"
700
- }
701
- ],
702
- "lean4.titlebar.documentation": [
703
- {
704
- "command": "lean4.docs.showSetupGuide",
705
- "when": "config.lean4.alwaysShowTitleBarMenu || lean4.isLeanFeatureSetActive",
706
- "group": "1_docs@1"
707
- },
708
- {
709
- "command": "lean4.docs.showExtensionManual",
710
- "when": "config.lean4.alwaysShowTitleBarMenu || lean4.isLeanFeatureSetActive",
711
- "group": "1_docs@2"
712
- },
713
- {
714
- "command": "lean4.docs.showDocResources",
715
- "when": "config.lean4.alwaysShowTitleBarMenu || lean4.isLeanFeatureSetActive",
716
- "group": "1_docs@3"
717
- },
718
- {
719
- "command": "lean4.docs.showAbbreviations",
720
- "when": "config.lean4.alwaysShowTitleBarMenu || lean4.isLeanFeatureSetActive",
721
- "group": "1_docs@4"
722
- }
723
- ],
724
- "editor/context": [
725
- {
726
- "command": "lean4.restartFile",
727
- "when": "editorLangId == lean4",
728
- "group": "z_commands"
729
- },
730
- {
731
- "command": "lean4.loogle.search",
732
- "when": "editorLangId == lean4",
733
- "group": "z_commands"
734
- }
735
- ],
736
- "webview/context": [
737
- {
738
- "command": "lean4.infoview.goToDefinition",
739
- "when": "webviewId == 'lean4_infoview' && interactiveCodeTagId"
740
- }
741
- ]
742
- },
743
- "submenus": [
744
- {
745
- "id": "lean4.titlebar",
746
- "label": "Lean 4",
747
- "icon": {
748
- "dark": "./media/lean-mini-dark.svg",
749
- "light": "./media/lean-mini-light.svg"
750
- }
751
- },
752
- {
753
- "id": "lean4.titlebar.newProject",
754
- "label": "New Project…"
755
- },
756
- {
757
- "id": "lean4.titlebar.openProject",
758
- "label": "Open Project…"
759
- },
760
- {
761
- "id": "lean4.titlebar.versions",
762
- "label": "Version Management…"
763
- },
764
- {
765
- "id": "lean4.titlebar.projectActions",
766
- "label": "Project Actions…"
767
- },
768
- {
769
- "id": "lean4.titlebar.documentation",
770
- "label": "Documentation…"
771
- }
772
- ],
773
- "semanticTokenScopes": [
774
- {
775
- "scopes": {
776
- "keyword": [
777
- "keyword.other"
778
- ]
779
- }
780
- }
781
- ],
782
- "configurationDefaults": {
783
- "[lean4]": {
784
- "editor.unicodeHighlight.ambiguousCharacters": false,
785
- "editor.tabSize": 2,
786
- "editor.insertSpaces": true,
787
- "editor.wordSeparators": "`~@$%^&*()-=+[{]}⟨⟩⦃⦄⟦⟧⟮⟯‹›\\|;:\",.<>/",
788
- "files.encoding": "utf8",
789
- "files.eol": "\n",
790
- "files.insertFinalNewline": true,
791
- "files.trimFinalNewlines": true,
792
- "files.trimTrailingWhitespace": true
793
- }
794
- },
795
- "walkthroughs": [
796
- {
797
- "id": "lean4.welcome",
798
- "title": "Lean 4 Setup",
799
- "description": "Getting started with Lean 4\n",
800
- "steps": [
801
- {
802
- "id": "lean4.welcome.openSetupGuide",
803
- "title": "Re-Open Setup Guide",
804
- "description": "This guide can always be re-opened by opening an empty file, clicking on the ∀-symbol in the top right and selecting 'Documentation…' > 'Docs: Show Setup Guide'.",
805
- "media": {
806
- "image": "media/open-setup-guide.png",
807
- "altText": "Click on the ∀-symbol in the top right and select 'Documentation…' > 'Docs: Show Setup Guide'."
808
- }
809
- },
810
- {
811
- "id": "lean4.welcome.documentation",
812
- "title": "Books and Documentation",
813
- "description": "Learn using Lean 4 with the resources on the right.",
814
- "media": {
815
- "markdown": "./media/guide-documentation.md"
816
- }
817
- },
818
- {
819
- "id": "lean4.welcome.installDeps.linux",
820
- "title": "Install Required Dependencies",
821
- "description": "Install Git and curl using your package manager.",
822
- "media": {
823
- "markdown": "./media/guide-installDeps-linux.md"
824
- },
825
- "when": "isLinux"
826
- },
827
- {
828
- "id": "lean4.welcome.installDeps.mac",
829
- "title": "Install Required Dependencies",
830
- "description": "Install Homebrew, Git and curl.",
831
- "media": {
832
- "markdown": "./media/guide-installDeps-mac.md"
833
- },
834
- "when": "isMac"
835
- },
836
- {
837
- "id": "lean4.welcome.installDeps.windows",
838
- "title": "Install Required Dependencies",
839
- "description": "Install Git.",
840
- "media": {
841
- "markdown": "./media/guide-installDeps-windows.md"
842
- },
843
- "when": "isWindows"
844
- },
845
- {
846
- "id": "lean4.welcome.installElan.unix",
847
- "title": "Install Lean Version Manager",
848
- "description": "Install Lean's version manager Elan.\n[Click to install](command:lean4.setup.installElan)",
849
- "media": {
850
- "markdown": "./media/guide-installElan-unix.md"
851
- },
852
- "when": "isLinux || isMac"
853
- },
854
- {
855
- "id": "lean4.welcome.installElan.windows",
856
- "title": "Install Lean Version Manager",
857
- "description": "Install Lean's version manager Elan.\n[Click to install](command:lean4.setup.installElan)",
858
- "media": {
859
- "markdown": "./media/guide-installElan-windows.md"
860
- },
861
- "when": "isWindows"
862
- },
863
- {
864
- "id": "lean4.welcome.setupProject",
865
- "title": "Set Up Lean 4 Project",
866
- "description": "Set up a Lean 4 project by clicking on one of the options on the right.",
867
- "media": {
868
- "markdown": "./media/guide-setupProject.md"
869
- }
870
- },
871
- {
872
- "id": "lean4.welcome.help",
873
- "title": "Questions and Troubleshooting",
874
- "description": "If you have any questions or are having trouble with any of the previous steps, please visit us on the [Lean Zulip chat](https://leanprover.zulipchat.com/) so that we can help you.",
875
- "media": {
876
- "markdown": "./media/guide-help.md"
877
- }
878
- }
879
- ]
880
- }
881
- ]
882
- },
883
- "extensionKind": [
884
- "workspace"
885
- ],
886
- "activationEvents": [
887
- "onLanguage:lean",
888
- "onLanguage:markdown",
889
- "onStartupFinished"
890
- ],
891
- "main": "./dist/extension",
892
- "scripts": {
893
- "vscode:prepublish": "webpack --env production",
894
- "build": "webpack --env production",
895
- "watch": "webpack --env development --watch",
896
- "watchTest": "concurrently \"tsc -p . -w --outDir out\" \"npm run watch\"",
897
- "package": "vsce package",
898
- "packagePreRelease": "vsce package --pre-release",
899
- "pretest": "tsc -p . --outDir out",
900
- "test": "node ./out/test/suite/runTest.js"
901
- },
902
- "dependencies": {
903
- "@leanprover/infoview": "~0.7.0",
904
- "@leanprover/infoview-api": "~0.4.0",
905
- "@leanprover/unicode-input": "~0.1.0",
906
- "@leanprover/unicode-input-component": "~0.1.0",
907
- "@vscode/codicons": "^0.0.36",
908
- "@vscode/webview-ui-toolkit": "^1.4.0",
909
- "markdown-it": "^14.1.0",
910
- "markdown-it-anchor": "^9.0.1",
911
- "semver": "^7.6.0",
912
- "vscode-languageclient": "^8.0.2",
913
- "zod": "^3.22.4"
914
- },
915
- "devDependencies": {
916
- "@types/glob": "^8.1.0",
917
- "@types/markdown-it": "^14.1.1",
918
- "@types/mocha": "^10.0.6",
919
- "@types/node": "^20.12.12",
920
- "@types/semver": "^7.5.7",
921
- "@types/vscode": "^1.75.0",
922
- "@types/vscode-webview": "^1.57.5",
923
- "@vscode/test-electron": "^2.3.9",
924
- "@vscode/vsce": "^2.21.1",
925
- "concurrently": "^8.2.2",
926
- "copy-webpack-plugin": "^12.0.2",
927
- "glob": "^10.3.16",
928
- "mocha": "^10.3.0",
929
- "ovsx": "^0.9.1",
930
- "source-map-loader": "^5.0.0",
931
- "ts-loader": "^9.5.1",
932
- "typescript": "^5.4.5",
933
- "webpack": "^5.90.3",
934
- "webpack-cli": "^5.1.4"
935
- },
936
- "icon": "images/lean_logo.png",
937
- "license": "Apache-2.0",
938
- "__metadata": {
939
- "id": "ddb6b8b1-9e92-40ce-90d4-45bb5f345ef9",
940
- "publisherDisplayName": "leanprover",
941
- "publisherId": "36715126-cec3-4ee0-926f-91a098ea5112",
942
- "isPreReleaseVersion": false
943
- }
944
- }