lean4monaco 1.0.0

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 (87) hide show
  1. package/README.md +79 -0
  2. package/dist/editor.d.ts +10 -0
  3. package/dist/editor.js +31 -0
  4. package/dist/importmetaurl.d.ts +2 -0
  5. package/dist/importmetaurl.js +26 -0
  6. package/dist/index.d.ts +2 -0
  7. package/dist/index.js +2 -0
  8. package/dist/infowebview.d.ts +21 -0
  9. package/dist/infowebview.js +80 -0
  10. package/dist/leanmonaco.d.ts +26 -0
  11. package/dist/leanmonaco.js +205 -0
  12. package/dist/monaco-lean4/lean4-infoview/package.json +59 -0
  13. package/dist/monaco-lean4/lean4-infoview/src/infoview/index.css +272 -0
  14. package/dist/monaco-lean4/lean4-infoview/test/tsconfig.json +7 -0
  15. package/dist/monaco-lean4/lean4-infoview/tsconfig.json +34 -0
  16. package/dist/monaco-lean4/lean4-infoview-api/package.json +20 -0
  17. package/dist/monaco-lean4/lean4-infoview-api/tsconfig.json +29 -0
  18. package/dist/monaco-lean4/lean4-unicode-input/package.json +19 -0
  19. package/dist/monaco-lean4/lean4-unicode-input/src/abbreviations.json +1836 -0
  20. package/dist/monaco-lean4/lean4-unicode-input/tsconfig.json +18 -0
  21. package/dist/monaco-lean4/lean4-unicode-input-component/package.json +22 -0
  22. package/dist/monaco-lean4/lean4-unicode-input-component/tsconfig.json +18 -0
  23. package/dist/monaco-lean4/lerna.json +4 -0
  24. package/dist/monaco-lean4/package-lock.json +14153 -0
  25. package/dist/monaco-lean4/package.json +39 -0
  26. package/dist/monaco-lean4/vscode-lean4/abbreviationview/tsconfig.json +10 -0
  27. package/dist/monaco-lean4/vscode-lean4/language-configuration.json +157 -0
  28. package/dist/monaco-lean4/vscode-lean4/loogleview/static/index.css +94 -0
  29. package/dist/monaco-lean4/vscode-lean4/loogleview/tsconfig.json +10 -0
  30. package/dist/monaco-lean4/vscode-lean4/package.json +944 -0
  31. package/dist/monaco-lean4/vscode-lean4/src/abbreviation/AbbreviationFeature.d.ts +8 -0
  32. package/dist/monaco-lean4/vscode-lean4/src/abbreviation/AbbreviationFeature.js +20 -0
  33. package/dist/monaco-lean4/vscode-lean4/src/abbreviation/AbbreviationHoverProvider.d.ts +12 -0
  34. package/dist/monaco-lean4/vscode-lean4/src/abbreviation/AbbreviationHoverProvider.js +40 -0
  35. package/dist/monaco-lean4/vscode-lean4/src/abbreviation/AbbreviationRewriterFeature.d.ts +19 -0
  36. package/dist/monaco-lean4/vscode-lean4/src/abbreviation/AbbreviationRewriterFeature.js +77 -0
  37. package/dist/monaco-lean4/vscode-lean4/src/abbreviation/VSCodeAbbreviationConfig.d.ts +13 -0
  38. package/dist/monaco-lean4/vscode-lean4/src/abbreviation/VSCodeAbbreviationConfig.js +29 -0
  39. package/dist/monaco-lean4/vscode-lean4/src/abbreviation/VSCodeAbbreviationRewriter.d.ts +27 -0
  40. package/dist/monaco-lean4/vscode-lean4/src/abbreviation/VSCodeAbbreviationRewriter.js +122 -0
  41. package/dist/monaco-lean4/vscode-lean4/src/config.d.ts +33 -0
  42. package/dist/monaco-lean4/vscode-lean4/src/config.js +119 -0
  43. package/dist/monaco-lean4/vscode-lean4/src/diagnostics/setupNotifs.d.ts +27 -0
  44. package/dist/monaco-lean4/vscode-lean4/src/diagnostics/setupNotifs.js +133 -0
  45. package/dist/monaco-lean4/vscode-lean4/src/infoview.d.ts +69 -0
  46. package/dist/monaco-lean4/vscode-lean4/src/infoview.js +711 -0
  47. package/dist/monaco-lean4/vscode-lean4/src/leanclient.d.ts +67 -0
  48. package/dist/monaco-lean4/vscode-lean4/src/leanclient.js +443 -0
  49. package/dist/monaco-lean4/vscode-lean4/src/rpc.d.ts +16 -0
  50. package/dist/monaco-lean4/vscode-lean4/src/rpc.js +102 -0
  51. package/dist/monaco-lean4/vscode-lean4/src/taskgutter.d.ts +11 -0
  52. package/dist/monaco-lean4/vscode-lean4/src/taskgutter.js +130 -0
  53. package/dist/monaco-lean4/vscode-lean4/src/utils/batch.d.ts +37 -0
  54. package/dist/monaco-lean4/vscode-lean4/src/utils/batch.js +203 -0
  55. package/dist/monaco-lean4/vscode-lean4/src/utils/clientProvider.d.ts +41 -0
  56. package/dist/monaco-lean4/vscode-lean4/src/utils/clientProvider.js +205 -0
  57. package/dist/monaco-lean4/vscode-lean4/src/utils/converters.d.ts +16 -0
  58. package/dist/monaco-lean4/vscode-lean4/src/utils/converters.js +129 -0
  59. package/dist/monaco-lean4/vscode-lean4/src/utils/elan.d.ts +3 -0
  60. package/dist/monaco-lean4/vscode-lean4/src/utils/elan.js +4 -0
  61. package/dist/monaco-lean4/vscode-lean4/src/utils/envPath.d.ts +21 -0
  62. package/dist/monaco-lean4/vscode-lean4/src/utils/envPath.js +53 -0
  63. package/dist/monaco-lean4/vscode-lean4/src/utils/exturi.d.ts +35 -0
  64. package/dist/monaco-lean4/vscode-lean4/src/utils/exturi.js +136 -0
  65. package/dist/monaco-lean4/vscode-lean4/src/utils/fsHelper.d.ts +17 -0
  66. package/dist/monaco-lean4/vscode-lean4/src/utils/fsHelper.js +36 -0
  67. package/dist/monaco-lean4/vscode-lean4/src/utils/leanInstaller.d.ts +37 -0
  68. package/dist/monaco-lean4/vscode-lean4/src/utils/leanInstaller.js +210 -0
  69. package/dist/monaco-lean4/vscode-lean4/src/utils/logger.d.ts +7 -0
  70. package/dist/monaco-lean4/vscode-lean4/src/utils/logger.js +20 -0
  71. package/dist/monaco-lean4/vscode-lean4/src/utils/notifs.d.ts +24 -0
  72. package/dist/monaco-lean4/vscode-lean4/src/utils/notifs.js +110 -0
  73. package/dist/monaco-lean4/vscode-lean4/src/utils/projectInfo.d.ts +9 -0
  74. package/dist/monaco-lean4/vscode-lean4/src/utils/projectInfo.js +125 -0
  75. package/dist/monaco-lean4/vscode-lean4/syntaxes/codeblock.json +45 -0
  76. package/dist/monaco-lean4/vscode-lean4/syntaxes/lean4-markdown.json +2637 -0
  77. package/dist/monaco-lean4/vscode-lean4/syntaxes/lean4.json +127 -0
  78. package/dist/monaco-lean4/vscode-lean4/tsconfig.json +18 -0
  79. package/dist/monaco-lean4/vscode-lean4/webview/tsconfig.json +11 -0
  80. package/dist/monacoleanclient.d.ts +4 -0
  81. package/dist/monacoleanclient.js +17 -0
  82. package/dist/preconditions.d.ts +4 -0
  83. package/dist/preconditions.js +3 -0
  84. package/dist/vscode.css +408 -0
  85. package/dist/webview.d.ts +1 -0
  86. package/dist/webview.js +9 -0
  87. package/package.json +45 -0
@@ -0,0 +1,127 @@
1
+ {
2
+ "name": "Lean 4",
3
+ "scopeName": "source.lean4",
4
+ "fileTypes": [],
5
+ "patterns": [
6
+ { "include": "#comments" },
7
+ { "match": "\\b(Prop|Type|Sort)\\b", "name": "storage.type.lean4" },
8
+ { "match": "\\battribute\\b\\s*\\[[^\\]]*\\]", "name": "storage.modifier.lean4" },
9
+ { "match": "@\\[[^\\]]*\\]", "name": "storage.modifier.lean4" },
10
+ {
11
+ "match": "\\b(?<!\\.)(global|local|scoped|partial|unsafe|private|protected|noncomputable)(?!\\.)\\b",
12
+ "name": "storage.modifier.lean4"
13
+ },
14
+ { "match": "\\b(sorry|admit|stop)\\b", "name": "invalid.illegal.lean4" },
15
+ { "match": "#(print|eval|reduce|check|check_failure)\\b", "name": "keyword.other.lean4" },
16
+ {
17
+ "match": "\\bderiving\\s+instance\\b",
18
+ "name": "keyword.other.command.lean4"
19
+ },
20
+ {
21
+ "begin": "\\b(?<!\\.)(inductive|coinductive|structure|theorem|axiom|abbrev|lemma|def|instance|class|constant)\\b\\s+(\\{[^}]*\\})?",
22
+ "beginCaptures": {
23
+ "1": { "name": "keyword.other.definitioncommand.lean4" }
24
+ },
25
+ "patterns": [{ "include": "#comments" }, { "include": "#definitionName" }, { "match": "," }],
26
+ "end": "(?=\\bwith\\b|\\bextends\\b|\\bwhere\\b|[:\\|\\(\\[\\{⦃<>])",
27
+ "name": "meta.definitioncommand.lean4"
28
+ },
29
+ {
30
+ "match": "\\b(?<!\\.)(theorem|show|have|from|suffices|nomatch|def|class|structure|instance|set_option|initialize|builtin_initialize|example|inductive|coinductive|axiom|constant|universe|universes|variable|variables|import|open|export|theory|prelude|renaming|hiding|exposing|do|by|let|extends|mutual|mut|where|rec|syntax|macro_rules|macro|deriving|fun|section|namespace|end|infix|infixl|infixr|postfix|prefix|notation|abbrev|if|then|else|calc|match|with|for|in|unless|try|catch|finally|return|continue|break)(?!\\.)\\b",
31
+ "name": "keyword.other.lean4"
32
+ },
33
+ { "begin": "«", "end": "»", "contentName": "entity.name.lean4" },
34
+ {
35
+ "begin": "(s!)\"",
36
+ "end": "\"",
37
+ "name": "string.interpolated.lean4",
38
+ "beginCaptures": {
39
+ "1": { "name": "keyword.other.lean4" }
40
+ },
41
+ "patterns": [
42
+ {
43
+ "begin": "(\\{)",
44
+ "end": "(\\})",
45
+ "beginCaptures": { "1": { "name": "keyword.other.lean4" } },
46
+ "endCaptures": { "1": { "name": "keyword.other.lean4" } },
47
+ "patterns": [{ "include": "$self" }]
48
+ },
49
+ { "match": "\\\\[\\\\\"ntr']", "name": "constant.character.escape.lean4" },
50
+ { "match": "\\\\x[0-9A-Fa-f][0-9A-Fa-f]", "name": "constant.character.escape.lean4" },
51
+ {
52
+ "match": "\\\\u[0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f]",
53
+ "name": "constant.character.escape.lean4"
54
+ }
55
+ ]
56
+ },
57
+ {
58
+ "begin": "\"",
59
+ "end": "\"",
60
+ "name": "string.quoted.double.lean4",
61
+ "patterns": [
62
+ { "match": "\\\\[\\\\\"ntr']", "name": "constant.character.escape.lean4" },
63
+ { "match": "\\\\x[0-9A-Fa-f][0-9A-Fa-f]", "name": "constant.character.escape.lean4" },
64
+ {
65
+ "match": "\\\\u[0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f]",
66
+ "name": "constant.character.escape.lean4"
67
+ }
68
+ ]
69
+ },
70
+ { "name": "constant.language.lean4", "match": "\\b(true|false)\\b" },
71
+ { "name": "string.quoted.single.lean4", "match": "'[^\\\\']'" },
72
+ {
73
+ "name": "string.quoted.single.lean4",
74
+ "match": "'(\\\\(x[0-9A-Fa-f][0-9A-Fa-f]|u[0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f]|.))'",
75
+ "captures": { "1": { "name": "constant.character.escape.lean4" } }
76
+ },
77
+ { "match": "`+[^\\[(]\\S+", "name": "entity.name.lean4" },
78
+ {
79
+ "match": "\\b([0-9]+|0([xX][0-9a-fA-F]+)|[-]?(0|[1-9][0-9]*)(\\.[0-9]+)?([eE][+-]?[0-9]+)?)\\b",
80
+ "name": "constant.numeric.lean4"
81
+ }
82
+ ],
83
+ "repository": {
84
+ "definitionName": {
85
+ "patterns": [
86
+ {
87
+ "match": "\\b[^:«»\\(\\)\\{\\}[:space:]=→λ∀?][^:«»\\(\\)\\{\\}[:space:]]*",
88
+ "name": "entity.name.function.lean4"
89
+ },
90
+ { "begin": "«", "end": "»", "contentName": "entity.name.function.lean4" }
91
+ ]
92
+ },
93
+ "dashComment": {
94
+ "begin": "--",
95
+ "end": "$",
96
+ "name": "comment.line.double-dash.lean4",
97
+ "patterns": [{ "include": "source.lean4.markdown" }]
98
+ },
99
+ "docComment": {
100
+ "begin": "/--",
101
+ "end": "-/",
102
+ "name": "comment.block.documentation.lean4",
103
+ "patterns": [{ "include": "source.lean4.markdown" }, { "include": "#blockComment" }]
104
+ },
105
+ "modDocComment": {
106
+ "begin": "/-!",
107
+ "end": "-/",
108
+ "name": "comment.block.documentation.lean4",
109
+ "patterns": [{ "include": "source.lean4.markdown" }, { "include": "#blockComment" }]
110
+ },
111
+ "blockComment": {
112
+ "begin": "/-",
113
+ "end": "-/",
114
+ "name": "comment.block.lean4",
115
+ "patterns": [{ "include": "source.lean4.markdown" }, { "include": "#blockComment" }]
116
+ },
117
+ "comments": {
118
+ "patterns": [
119
+ { "include": "#dashComment" },
120
+ { "include": "#docComment" },
121
+ { "include": "#stringBlock" },
122
+ { "include": "#modDocComment" },
123
+ { "include": "#blockComment" }
124
+ ]
125
+ }
126
+ }
127
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "compilerOptions": {
3
+ "experimentalDecorators": true,
4
+ "resolveJsonModule": true,
5
+ "module": "commonjs",
6
+ "target": "es6",
7
+ "outDir": "out",
8
+ "lib": ["es6", "ES2021", "es2020.string"],
9
+ "sourceMap": true,
10
+ "alwaysStrict": true,
11
+ "rootDir": "./",
12
+ "noImplicitAny": true,
13
+ "strictNullChecks": true,
14
+ "esModuleInterop": true
15
+ },
16
+ "include": ["src/**/*", "test/suite/**/*"],
17
+ "exclude": ["node_modules", ".vscode-test"]
18
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "extends": "../tsconfig",
3
+ "compilerOptions": {
4
+ "jsx": "react-jsx",
5
+ "strict": true,
6
+ "lib": ["dom", "es6"],
7
+ "rootDir": "../",
8
+ "sourceMap": true
9
+ },
10
+ "include": ["./**/*"]
11
+ }
@@ -0,0 +1,4 @@
1
+ import { WorkerConfigDirect, WebSocketConfigOptions, WebSocketConfigOptionsUrl, WorkerConfigOptions } from 'monaco-editor-wrapper';
2
+ import { ExtUri } from './monaco-lean4/vscode-lean4/src/utils/exturi';
3
+ import { LanguageClientOptions } from 'vscode-languageclient/node';
4
+ export declare const setupMonacoClient: (options: WebSocketConfigOptions | WebSocketConfigOptionsUrl | WorkerConfigOptions | WorkerConfigDirect) => (clientOptions: LanguageClientOptions, folderUri: ExtUri, elanDefaultToolchain: string) => Promise<import("monaco-languageclient").MonacoLanguageClient>;
@@ -0,0 +1,17 @@
1
+ import { LanguageClientWrapper } from 'monaco-editor-wrapper';
2
+ export const setupMonacoClient = (options) => {
3
+ return async (clientOptions, folderUri, elanDefaultToolchain) => {
4
+ const languageClientWrapper = new LanguageClientWrapper();
5
+ await languageClientWrapper.init({
6
+ languageClientConfig: {
7
+ languageId: 'lean4',
8
+ options,
9
+ clientOptions
10
+ }
11
+ });
12
+ await languageClientWrapper?.start();
13
+ const client = languageClientWrapper.getLanguageClient();
14
+ client._serverProcess = { stderr: { on: () => { } } };
15
+ return client;
16
+ };
17
+ };
@@ -0,0 +1,4 @@
1
+ import { OutputChannel } from "vscode";
2
+ import { ExtUri } from "./monaco-lean4/vscode-lean4/src/utils/exturi";
3
+ import { PreconditionCheckResult } from "./monaco-lean4/vscode-lean4/src/diagnostics/setupNotifs";
4
+ export declare function checkLean4ProjectPreconditions(channel: OutputChannel, folderUri: ExtUri): Promise<PreconditionCheckResult>;
@@ -0,0 +1,3 @@
1
+ export async function checkLean4ProjectPreconditions(channel, folderUri) {
2
+ return 'Fulfilled';
3
+ }
@@ -0,0 +1,408 @@
1
+ /* From https://www.eliostruyf.com/code-driven-approach-theme-vscode-webview/, adapted */
2
+
3
+ :root {
4
+ --vscode-font-weight:normal;
5
+ --vscode-font-size:13px;
6
+ --vscode-editor-font-family: 'JuliaMono', 'Source Code Pro', 'STIX Two Math', monospace;
7
+ --vscode-editor-font-weight:normal;
8
+ --vscode-editor-font-size:15px;
9
+ --vscode-foreground: #616161;
10
+ --vscode-errorForeground: #a1260d;
11
+ --vscode-descriptionForeground: #717171;
12
+ --vscode-icon-foreground: #424242;
13
+ --vscode-focusBorder: #0090f1;
14
+ --vscode-textSeparator-foreground: rgba(0, 0, 0, 0.18);
15
+ --vscode-textLink-foreground: #006ab1;
16
+ --vscode-textLink-activeForeground: #006ab1;
17
+ --vscode-textPreformat-foreground: #a31515;
18
+ --vscode-textBlockQuote-background: rgba(127, 127, 127, 0.1);
19
+ --vscode-textBlockQuote-border: rgba(0, 122, 204, 0.5);
20
+ --vscode-textCodeBlock-background: rgba(220, 220, 220, 0.4);
21
+ --vscode-widget-shadow: #a8a8a8;
22
+ --vscode-input-background: #ffffff;
23
+ --vscode-input-foreground: #616161;
24
+ --vscode-inputOption-activeBorder: rgba(0, 122, 204, 0);
25
+ --vscode-inputOption-activeBackground: rgba(0, 144, 241, 0.2);
26
+ --vscode-inputOption-activeForeground: #000000;
27
+ --vscode-input-placeholderForeground: #767676;
28
+ --vscode-inputValidation-infoBackground: #d6ecf2;
29
+ --vscode-inputValidation-infoBorder: #007acc;
30
+ --vscode-inputValidation-warningBackground: #f6f5d2;
31
+ --vscode-inputValidation-warningBorder:
32
+ --vscode-inputValidation-errorBackground: #f2dede;
33
+ --vscode-inputValidation-errorBorder: #be1100;
34
+ --vscode-dropdown-background: #ffffff;
35
+ --vscode-dropdown-foreground:
36
+ --vscode-dropdown-border: #cecece;
37
+ --vscode-checkbox-background: #ffffff;
38
+ --vscode-checkbox-border: #cecece;
39
+ /* --vscode-checkbox-foreground: */
40
+ --vscode-button-foreground: #ffffff;
41
+ --vscode-button-background: #007acc;
42
+ --vscode-button-hoverBackground: #0062a3;
43
+ --vscode-button-secondaryForeground: #ffffff;
44
+ --vscode-button-secondaryBackground: #5f6a79;
45
+ --vscode-button-secondaryHoverBackground: #4c5561;
46
+ --vscode-badge-background: #c4c4c4;
47
+ --vscode-badge-foreground: #333333;
48
+ --vscode-scrollbar-shadow: #dddddd;
49
+ --vscode-scrollbarSlider-background: rgba(100, 100, 100, 0.4);
50
+ --vscode-scrollbarSlider-hoverBackground: rgba(100, 100, 100, 0.7);
51
+ --vscode-scrollbarSlider-activeBackground: rgba(0, 0, 0, 0.6);
52
+ --vscode-progressBar-background: #0e70c0;
53
+ --vscode-editorError-foreground: #e51400;
54
+ --vscode-editorWarning-foreground: #e9a700;
55
+ --vscode-editorInfo-foreground: #75beff;
56
+ --vscode-editorHint-foreground: #6c6c6c;
57
+ --vscode-editor-background: #ffffff;
58
+ --vscode-editor-foreground: #000000;
59
+ --vscode-editorWidget-background: #f3f3f3;
60
+ --vscode-editorWidget-foreground: #616161;
61
+ --vscode-editorWidget-border: #c8c8c8;
62
+ --vscode-quickInput-background: #f3f3f3;
63
+ --vscode-quickInput-foreground: #616161;
64
+ --vscode-quickInputTitle-background: rgba(0, 0, 0, 0.06);
65
+ --vscode-pickerGroup-foreground: #0066bf;
66
+ --vscode-pickerGroup-border: #cccedb;
67
+ --vscode-editor-selectionBackground: #add6ff;
68
+ --vscode-editor-inactiveSelectionBackground: #e5ebf1;
69
+ --vscode-editor-selectionHighlightBackground: rgba(173, 214, 255, 0.5);
70
+ --vscode-editor-findMatchBackground: #a8ac94;
71
+ --vscode-editor-findMatchHighlightBackground: rgba(234, 92, 0, 0.33);
72
+ --vscode-editor-findRangeHighlightBackground: rgba(180, 180, 180, 0.3);
73
+ --vscode-searchEditor-findMatchBackground: rgba(234, 92, 0, 0.22);
74
+ --vscode-editor-hoverHighlightBackground: rgba(173, 214, 255, 0.15);
75
+ --vscode-editorHoverWidget-background: #f3f3f3;
76
+ --vscode-editorHoverWidget-foreground: #616161;
77
+ --vscode-editorHoverWidget-border: #c8c8c8;
78
+ --vscode-editorHoverWidget-statusBarBackground: #e7e7e7;
79
+ --vscode-editorLink-activeForeground: #0000ff;
80
+ --vscode-editorLightBulb-foreground: #ddb100;
81
+ --vscode-editorLightBulbAutoFix-foreground: #007acc;
82
+ --vscode-diffEditor-insertedTextBackground: rgba(155, 185, 85, 0.2);
83
+ --vscode-diffEditor-removedTextBackground: rgba(255, 0, 0, 0.2);
84
+ --vscode-diffEditor-diagonalFill: rgba(34, 34, 34, 0.2);
85
+ --vscode-list-focusBackground: (NO LONGER AVAILABLE)
86
+ --vscode-list-activeSelectionBackground: #0074e8;
87
+ --vscode-list-activeSelectionForeground: #ffffff;
88
+ --vscode-list-inactiveSelectionBackground: #e4e6f1;
89
+ --vscode-list-hoverBackground: #e8e8e8;
90
+ --vscode-list-dropBackground: #d6ebff;
91
+ --vscode-list-highlightForeground: #0066bf;
92
+ --vscode-list-invalidItemForeground: #b89500;
93
+ --vscode-list-errorForeground: #b01011;
94
+ --vscode-list-warningForeground: #855f00;
95
+ --vscode-listFilterWidget-background: #efc1ad;
96
+ --vscode-listFilterWidget-outline: rgba(0, 0, 0, 0);
97
+ --vscode-listFilterWidget-noMatchesOutline: #be1100;
98
+ --vscode-list-filterMatchBackground: rgba(234, 92, 0, 0.33);
99
+ --vscode-tree-indentGuidesStroke: #a9a9a9;
100
+ --vscode-list-deemphasizedForeground: #8e8e90;
101
+ --vscode-menu-foreground: #616161;
102
+ --vscode-menu-background: #ffffff;
103
+ --vscode-menu-selectionForeground: #ffffff;
104
+ --vscode-menu-selectionBackground: #0074e8;
105
+ --vscode-menu-separatorBackground: #888888;
106
+ --vscode-editor-snippetTabstopHighlightBackground: rgba(10, 50, 100, 0.2);
107
+ --vscode-editor-snippetFinalTabstopHighlightBorder: rgba(10, 50, 100, 0.5);
108
+ --vscode-breadcrumb-foreground: rgba(97, 97, 97, 0.8);
109
+ --vscode-breadcrumb-background: #ffffff;
110
+ --vscode-breadcrumb-focusForeground: #4e4e4e;
111
+ --vscode-breadcrumb-activeSelectionForeground: #4e4e4e;
112
+ --vscode-breadcrumbPicker-background: #f3f3f3;
113
+ --vscode-merge-currentHeaderBackground: rgba(64, 200, 174, 0.5);
114
+ --vscode-merge-currentContentBackground: rgba(64, 200, 174, 0.2);
115
+ --vscode-merge-incomingHeaderBackground: rgba(64, 166, 255, 0.5);
116
+ --vscode-merge-incomingContentBackground: rgba(64, 166, 255, 0.2);
117
+ --vscode-merge-commonHeaderBackground: rgba(96, 96, 96, 0.4);
118
+ --vscode-merge-commonContentBackground: rgba(96, 96, 96, 0.16);
119
+ --vscode-editorOverviewRuler-currentContentForeground: rgba(64, 200, 174, 0.5);
120
+ --vscode-editorOverviewRuler-incomingContentForeground: rgba(64, 166, 255, 0.5);
121
+ --vscode-editorOverviewRuler-commonContentForeground: rgba(96, 96, 96, 0.4);
122
+ --vscode-editorOverviewRuler-findMatchForeground: rgba(209, 134, 22, 0.49);
123
+ --vscode-editorOverviewRuler-selectionHighlightForeground: rgba(160, 160, 160, 0.8);
124
+ --vscode-minimap-findMatchHighlight: #d18616;
125
+ --vscode-minimap-selectionHighlight: #add6ff;
126
+ --vscode-minimap-errorHighlight: rgba(255, 18, 18, 0.7);
127
+ --vscode-minimap-warningHighlight: #e9a700;
128
+ --vscode-minimapSlider-background: rgba(100, 100, 100, 0.2);
129
+ --vscode-minimapSlider-hoverBackground: rgba(100, 100, 100, 0.35);
130
+ --vscode-minimapSlider-activeBackground: rgba(0, 0, 0, 0.3);
131
+ --vscode-problemsErrorIcon-foreground: #e51400;
132
+ --vscode-problemsWarningIcon-foreground: #e9a700;
133
+ --vscode-problemsInfoIcon-foreground: #75beff;
134
+ --vscode-charts-foreground: #616161;
135
+ --vscode-charts-lines: rgba(97, 97, 97, 0.5);
136
+ --vscode-charts-red: #e51400;
137
+ --vscode-charts-blue: #75beff;
138
+ --vscode-charts-yellow: #e9a700;
139
+ --vscode-charts-orange: #d18616;
140
+ --vscode-charts-green: #388a34;
141
+ --vscode-charts-purple: #652d90;
142
+ --vscode-editor-lineHighlightBorder: #eeeeee;
143
+ --vscode-editor-rangeHighlightBackground: rgba(253, 255, 0, 0.2);
144
+ --vscode-editor-symbolHighlightBackground: rgba(234, 92, 0, 0.33);
145
+ --vscode-editorCursor-foreground: #000000;
146
+ --vscode-editorWhitespace-foreground: rgba(51, 51, 51, 0.2);
147
+ --vscode-editorIndentGuide-background: #d3d3d3;
148
+ --vscode-editorIndentGuide-activeBackground: #939393;
149
+ --vscode-editorLineNumber-foreground: #237893;
150
+ --vscode-editorActiveLineNumber-foreground: #0b216f;
151
+ --vscode-editorLineNumber-activeForeground: #0b216f;
152
+ --vscode-editorRuler-foreground: #d3d3d3;
153
+ --vscode-editorCodeLens-foreground: #999999;
154
+ --vscode-editorBracketMatch-background: rgba(0, 100, 0, 0.1);
155
+ --vscode-editorBracketMatch-border: #b9b9b9;
156
+ --vscode-editorOverviewRuler-border: rgba(127, 127, 127, 0.3);
157
+ --vscode-editorGutter-background: #ffffff;
158
+ --vscode-editorUnnecessaryCode-opacity: rgba(0, 0, 0, 0.47);
159
+ --vscode-editorOverviewRuler-rangeHighlightForeground: rgba(0, 122, 204, 0.6);
160
+ --vscode-editorOverviewRuler-errorForeground: rgba(255, 18, 18, 0.7);
161
+ --vscode-editorOverviewRuler-warningForeground: #e9a700;
162
+ --vscode-editorOverviewRuler-infoForeground: #75beff;
163
+ --vscode-editorOverviewRuler-bracketMatchForeground: #a0a0a0;
164
+ --vscode-symbolIcon-arrayForeground: #616161;
165
+ --vscode-symbolIcon-booleanForeground: #616161;
166
+ --vscode-symbolIcon-classForeground: #d67e00;
167
+ --vscode-symbolIcon-colorForeground: #616161;
168
+ --vscode-symbolIcon-constantForeground: #616161;
169
+ --vscode-symbolIcon-constructorForeground: #652d90;
170
+ --vscode-symbolIcon-enumeratorForeground: #d67e00;
171
+ --vscode-symbolIcon-enumeratorMemberForeground: #007acc;
172
+ --vscode-symbolIcon-eventForeground: #d67e00;
173
+ --vscode-symbolIcon-fieldForeground: #007acc;
174
+ --vscode-symbolIcon-fileForeground: #616161;
175
+ --vscode-symbolIcon-folderForeground: #616161;
176
+ --vscode-symbolIcon-functionForeground: #652d90;
177
+ --vscode-symbolIcon-interfaceForeground: #007acc;
178
+ --vscode-symbolIcon-keyForeground: #616161;
179
+ --vscode-symbolIcon-keywordForeground: #616161;
180
+ --vscode-symbolIcon-methodForeground: #652d90;
181
+ --vscode-symbolIcon-moduleForeground: #616161;
182
+ --vscode-symbolIcon-numberForeground: #616161;
183
+ --vscode-symbolIcon-objectForeground: #616161;
184
+ --vscode-symbolIcon-operatorForeground: #616161;
185
+ --vscode-symbolIcon-packageForeground: #616161;
186
+ --vscode-symbolIcon-propertyForeground: #616161;
187
+ --vscode-symbolIcon-referenceForeground: #616161;
188
+ --vscode-symbolIcon-snippetForeground: #616161;
189
+ --vscode-symbolIcon-stringForeground: #616161;
190
+ --vscode-symbolIcon-structForeground: #616161;
191
+ --vscode-symbolIcon-textForeground: #616161;
192
+ --vscode-symbolIcon-typeParameterForeground: #616161;
193
+ --vscode-symbolIcon-unitForeground: #616161;
194
+ --vscode-symbolIcon-variableForeground: #007acc;
195
+ --vscode-editor-foldBackground: rgba(173, 214, 255, 0.3);
196
+ --vscode-editorGutter-foldingControlForeground: #424242;
197
+ --vscode-editor-onTypeRenameBackground: rgba(255, 0, 0, 0.3);
198
+ --vscode-editor-wordHighlightBackground: rgba(87, 87, 87, 0.25);
199
+ --vscode-editor-wordHighlightStrongBackground: rgba(14, 99, 156, 0.25);
200
+ --vscode-editorOverviewRuler-wordHighlightForeground: rgba(160, 160, 160, 0.8);
201
+ --vscode-editorOverviewRuler-wordHighlightStrongForeground: rgba(192, 160, 192, 0.8);
202
+ --vscode-peekViewTitle-background: #ffffff;
203
+ --vscode-peekViewTitleLabel-foreground: #333333;
204
+ --vscode-peekViewTitleDescription-foreground: rgba(97, 97, 97, 0.9);
205
+ --vscode-peekView-border: #007acc;
206
+ --vscode-peekViewResult-background: #f3f3f3;
207
+ --vscode-peekViewResult-lineForeground: #646465;
208
+ --vscode-peekViewResult-fileForeground: #1e1e1e;
209
+ --vscode-peekViewResult-selectionBackground: rgba(51, 153, 255, 0.2);
210
+ --vscode-peekViewResult-selectionForeground: #6c6c6c;
211
+ --vscode-peekViewEditor-background: #f2f8fc;
212
+ --vscode-peekViewEditorGutter-background: #f2f8fc;
213
+ --vscode-peekViewResult-matchHighlightBackground: rgba(234, 92, 0, 0.3);
214
+ --vscode-peekViewEditor-matchHighlightBackground: rgba(245, 216, 2, 0.87);
215
+ --vscode-editorSuggestWidget-background: #f3f3f3;
216
+ --vscode-editorSuggestWidget-border: #c8c8c8;
217
+ --vscode-editorSuggestWidget-foreground: #000000;
218
+ --vscode-editorSuggestWidget-selectedBackground: #d6ebff;
219
+ --vscode-editorSuggestWidget-highlightForeground: #0066bf;
220
+ --vscode-editorMarkerNavigationError-background: #e51400;
221
+ --vscode-editorMarkerNavigationWarning-background: #e9a700;
222
+ --vscode-editorMarkerNavigationInfo-background: #75beff;
223
+ --vscode-editorMarkerNavigation-background: #ffffff;
224
+ --vscode-tab-activeBackground: #ffffff;
225
+ --vscode-tab-unfocusedActiveBackground: #ffffff;
226
+ --vscode-tab-inactiveBackground: #ececec;
227
+ --vscode-tab-unfocusedInactiveBackground: #ececec;
228
+ --vscode-tab-activeForeground: #333333;
229
+ --vscode-tab-inactiveForeground: rgba(51, 51, 51, 0.7);
230
+ --vscode-tab-unfocusedActiveForeground: rgba(51, 51, 51, 0.7);
231
+ --vscode-tab-unfocusedInactiveForeground: rgba(51, 51, 51, 0.35);
232
+ --vscode-tab-border: #f3f3f3;
233
+ --vscode-tab-lastPinnedBorder: rgba(97, 97, 97, 0.19);
234
+ --vscode-tab-activeModifiedBorder: #33aaee;
235
+ --vscode-tab-inactiveModifiedBorder: rgba(51, 170, 238, 0.5);
236
+ --vscode-tab-unfocusedActiveModifiedBorder: rgba(51, 170, 238, 0.7);
237
+ --vscode-tab-unfocusedInactiveModifiedBorder: rgba(51, 170, 238, 0.25);
238
+ --vscode-editorPane-background: #ffffff;
239
+ --vscode-editorGroupHeader-tabsBackground: #f3f3f3;
240
+ --vscode-editorGroupHeader-noTabsBackground: #ffffff;
241
+ --vscode-editorGroup-border: #e7e7e7;
242
+ --vscode-editorGroup-dropBackground: rgba(38, 119, 203, 0.18);
243
+ --vscode-imagePreview-border: rgba(128, 128, 128, 0.35);
244
+ --vscode-panel-background: #ffffff;
245
+ --vscode-panel-border: rgba(128, 128, 128, 0.35);
246
+ --vscode-panelTitle-activeForeground: #424242;
247
+ --vscode-panelTitle-inactiveForeground: rgba(66, 66, 66, 0.75);
248
+ --vscode-panelTitle-activeBorder: #424242;
249
+ --vscode-panelInput-border: #dddddd;
250
+ --vscode-panel-dropBorder: #424242;
251
+ --vscode-panelSection-dropBackground: rgba(38, 119, 203, 0.18);
252
+ --vscode-panelSectionHeader-background: rgba(128, 128, 128, 0.2);
253
+ --vscode-panelSection-border: rgba(128, 128, 128, 0.35);
254
+ --vscode-statusBar-foreground: #ffffff;
255
+ --vscode-statusBar-noFolderForeground: #ffffff;
256
+ --vscode-statusBar-background: #007acc;
257
+ --vscode-statusBar-noFolderBackground: #68217a;
258
+ --vscode-statusBarItem-activeBackground: rgba(255, 255, 255, 0.18);
259
+ --vscode-statusBarItem-hoverBackground: rgba(255, 255, 255, 0.12);
260
+ --vscode-statusBarItem-prominentForeground: #ffffff;
261
+ --vscode-statusBarItem-prominentBackground: rgba(0, 0, 0, 0.5);
262
+ --vscode-statusBarItem-prominentHoverBackground: rgba(0, 0, 0, 0.3);
263
+ --vscode-activityBar-background: #2c2c2c;
264
+ --vscode-activityBar-foreground: #ffffff;
265
+ --vscode-activityBar-inactiveForeground: rgba(255, 255, 255, 0.4);
266
+ --vscode-activityBar-activeBorder: #ffffff;
267
+ --vscode-activityBar-dropBorder: #ffffff;
268
+ --vscode-activityBarBadge-background: #007acc;
269
+ --vscode-activityBarBadge-foreground: #ffffff;
270
+ --vscode-statusBarItem-remoteBackground: #16825d;
271
+ --vscode-statusBarItem-remoteForeground: #ffffff;
272
+ --vscode-extensionBadge-remoteBackground: #007acc;
273
+ --vscode-extensionBadge-remoteForeground: #ffffff;
274
+ --vscode-sideBar-background: #f3f3f3;
275
+ --vscode-sideBarTitle-foreground: #6f6f6f;
276
+ --vscode-sideBar-dropBackground: rgba(38, 119, 203, 0.18);
277
+ --vscode-sideBarSectionHeader-background: rgba(0, 0, 0, 0);
278
+ --vscode-sideBarSectionHeader-border: rgba(97, 97, 97, 0.19);
279
+ --vscode-titleBar-activeForeground: #333333;
280
+ --vscode-titleBar-inactiveForeground: rgba(51, 51, 51, 0.6);
281
+ --vscode-titleBar-activeBackground: #dddddd;
282
+ --vscode-titleBar-inactiveBackground: rgba(221, 221, 221, 0.6);
283
+ --vscode-menubar-selectionForeground: #333333;
284
+ --vscode-menubar-selectionBackground: rgba(0, 0, 0, 0.1);
285
+ --vscode-notifications-foreground: #616161;
286
+ --vscode-notifications-background: #f3f3f3;
287
+ --vscode-notificationLink-foreground: #006ab1;
288
+ --vscode-notificationCenterHeader-background: #e7e7e7;
289
+ --vscode-notifications-border: #e7e7e7;
290
+ --vscode-notificationsErrorIcon-foreground: #e51400;
291
+ --vscode-notificationsWarningIcon-foreground: #e9a700;
292
+ --vscode-notificationsInfoIcon-foreground: #75beff;
293
+ --vscode-editorGutter-commentRangeForeground: #c5c5c5;
294
+ --vscode-terminal-foreground: #333333;
295
+ --vscode-terminal-selectionBackground: rgba(0, 0, 0, 0.25);
296
+ --vscode-terminal-border: rgba(128, 128, 128, 0.35);
297
+ --vscode-statusBar-debuggingBackground: #cc6633;
298
+ --vscode-statusBar-debuggingForeground: #ffffff;
299
+ --vscode-settings-headerForeground: #444444;
300
+ --vscode-settings-modifiedItemIndicator: #66afe0;
301
+ --vscode-settings-dropdownBackground: #ffffff;
302
+ --vscode-settings-dropdownForeground:
303
+ --vscode-settings-dropdownBorder: #cecece;
304
+ --vscode-settings-dropdownListBorder: #c8c8c8;
305
+ --vscode-settings-checkboxBackground: #ffffff;
306
+ --vscode-settings-checkboxForeground:
307
+ --vscode-settings-checkboxBorder: #cecece;
308
+ --vscode-settings-textInputBackground: #ffffff;
309
+ --vscode-settings-textInputForeground: #616161;
310
+ --vscode-settings-textInputBorder: #cecece;
311
+ --vscode-settings-numberInputBackground: #ffffff;
312
+ --vscode-settings-numberInputForeground: #616161;
313
+ --vscode-settings-numberInputBorder: #cecece;
314
+ --vscode-settings-focusedRowBackground: rgba(214, 235, 255, 0.4);
315
+ --vscode-notebook-rowHoverBackground: rgba(214, 235, 255, 0.28);
316
+ --vscode-notebook-focusedRowBorder: rgba(0, 0, 0, 0.12);
317
+ --vscode-debugExceptionWidget-border: #a31515;
318
+ --vscode-debugExceptionWidget-background: #f1dfde;
319
+ --vscode-editorGutter-modifiedBackground: #66afe0;
320
+ --vscode-editorGutter-addedBackground: #81b88b;
321
+ --vscode-editorGutter-deletedBackground: #ca4b51;
322
+ --vscode-minimapGutter-modifiedBackground: #66afe0;
323
+ --vscode-minimapGutter-addedBackground: #81b88b;
324
+ --vscode-minimapGutter-deletedBackground: #ca4b51;
325
+ --vscode-editorOverviewRuler-modifiedForeground: rgba(102, 175, 224, 0.6);
326
+ --vscode-editorOverviewRuler-addedForeground: rgba(129, 184, 139, 0.6);
327
+ --vscode-editorOverviewRuler-deletedForeground: rgba(202, 75, 81, 0.6);
328
+ --vscode-editor-stackFrameHighlightBackground: rgba(255, 255, 102, 0.45);
329
+ --vscode-editor-focusedStackFrameHighlightBackground: rgba(206, 231, 206, 0.45);
330
+ --vscode-searchEditor-textInputBorder: #cecece;
331
+ --vscode-debugIcon-breakpointForeground: #e51400;
332
+ --vscode-debugIcon-breakpointDisabledForeground: #848484;
333
+ --vscode-debugIcon-breakpointUnverifiedForeground: #848484;
334
+ --vscode-debugIcon-breakpointCurrentStackframeForeground: #ffcc00;
335
+ --vscode-debugIcon-breakpointStackframeForeground: #89d185;
336
+ --vscode-debugToolBar-background: #f3f3f3;
337
+ --vscode-debugIcon-startForeground: #388a34;
338
+ --vscode-debugIcon-pauseForeground: #007acc;
339
+ --vscode-debugIcon-stopForeground: #a1260d;
340
+ --vscode-debugIcon-disconnectForeground: #a1260d;
341
+ --vscode-debugIcon-restartForeground: #388a34;
342
+ --vscode-debugIcon-stepOverForeground: #007acc;
343
+ --vscode-debugIcon-stepIntoForeground: #007acc;
344
+ --vscode-debugIcon-stepOutForeground: #007acc;
345
+ --vscode-debugIcon-continueForeground: #007acc;
346
+ --vscode-debugIcon-stepBackForeground: #007acc;
347
+ --vscode-debugTokenExpression-name: #9b46b0;
348
+ --vscode-debugTokenExpression-value: rgba(108, 108, 108, 0.8);
349
+ --vscode-debugTokenExpression-string: #a31515;
350
+ --vscode-debugTokenExpression-boolean: #0000ff;
351
+ --vscode-debugTokenExpression-number: #098658;
352
+ --vscode-debugTokenExpression-error: #e51400;
353
+ --vscode-debugView-exceptionLabelForeground: #ffffff;
354
+ --vscode-debugView-exceptionLabelBackground: #a31515;
355
+ --vscode-debugView-stateLabelForeground: #616161;
356
+ --vscode-debugView-stateLabelBackground: rgba(136, 136, 136, 0.27);
357
+ --vscode-debugView-valueChangedHighlight: #569cd6;
358
+ --vscode-debugConsole-infoForeground: #75beff;
359
+ --vscode-debugConsole-warningForeground: #e9a700;
360
+ --vscode-debugConsole-errorForeground: #a1260d;
361
+ --vscode-debugConsole-sourceForeground: #616161;
362
+ --vscode-debugConsoleInputIcon-foreground: #616161;
363
+ --vscode-extensionButton-prominentBackground: #327e36;
364
+ --vscode-extensionButton-prominentForeground: #ffffff;
365
+ --vscode-extensionButton-prominentHoverBackground: #28632b;
366
+ --vscode-notebook-cellBorderColor: #dae3e9;
367
+ --vscode-notebook-focusedEditorBorder: #0090f1;
368
+ --vscode-notebookStatusSuccessIcon-foreground: #388a34;
369
+ --vscode-notebookStatusErrorIcon-foreground: #a1260d;
370
+ --vscode-notebookStatusRunningIcon-foreground: #616161;
371
+ --vscode-notebook-outputContainerBackgroundColor: rgba(200, 221, 241, 0.31);
372
+ --vscode-notebook-cellToolbarSeparator: rgba(128, 128, 128, 0.35);
373
+ --vscode-notebook-focusedCellBackground: rgba(200, 221, 241, 0.31);
374
+ --vscode-notebook-cellHoverBackground: rgba(200, 221, 241, 0.22);
375
+ --vscode-notebook-focusedCellBorder: rgba(0, 0, 0, 0.12);
376
+ --vscode-notebook-cellStatusBarItemHoverBackground: rgba(0, 0, 0, 0.08);
377
+ --vscode-notebook-cellInsertionIndicator: #0090f1;
378
+ --vscode-notebookScrollbarSlider-background: rgba(100, 100, 100, 0.4);
379
+ --vscode-notebookScrollbarSlider-hoverBackground: rgba(100, 100, 100, 0.7);
380
+ --vscode-notebookScrollbarSlider-activeBackground: rgba(0, 0, 0, 0.6);
381
+ --vscode-notebook-symbolHighlightBackground: rgba(253, 255, 0, 0.2);
382
+ --vscode-scm-providerBorder: #c8c8c8;
383
+ --vscode-terminal-ansiBlack: #000000;
384
+ --vscode-terminal-ansiRed: #cd3131;
385
+ --vscode-terminal-ansiGreen: #00bc00;
386
+ --vscode-terminal-ansiYellow: #949800;
387
+ --vscode-terminal-ansiBlue: #0451a5;
388
+ --vscode-terminal-ansiMagenta: #bc05bc;
389
+ --vscode-terminal-ansiCyan: #0598bc;
390
+ --vscode-terminal-ansiWhite: #555555;
391
+ --vscode-terminal-ansiBrightBlack: #666666;
392
+ --vscode-terminal-ansiBrightRed: #cd3131;
393
+ --vscode-terminal-ansiBrightGreen: #14ce14;
394
+ --vscode-terminal-ansiBrightYellow: #b5ba00;
395
+ --vscode-terminal-ansiBrightBlue: #0451a5;
396
+ --vscode-terminal-ansiBrightMagenta: #bc05bc;
397
+ --vscode-terminal-ansiBrightCyan: #0598bc;
398
+ --vscode-terminal-ansiBrightWhite: #a5a5a5;
399
+ --vscode-gitDecoration-addedResourceForeground: #587c0c;
400
+ --vscode-gitDecoration-modifiedResourceForeground: #895503;
401
+ --vscode-gitDecoration-deletedResourceForeground: #ad0707;
402
+ --vscode-gitDecoration-untrackedResourceForeground: #007100;
403
+ --vscode-gitDecoration-ignoredResourceForeground: #8e8e90;
404
+ --vscode-gitDecoration-stageModifiedResourceForeground: #895503;
405
+ --vscode-gitDecoration-stageDeletedResourceForeground: #ad0707;
406
+ --vscode-gitDecoration-conflictingResourceForeground: #6c6cc4;
407
+ --vscode-gitDecoration-submoduleResourceForeground: #1258a7;
408
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ import { renderInfoview } from '@leanprover/infoview';
2
+ import { Rpc } from './monaco-lean4/vscode-lean4/src/rpc';
3
+ const vscodeApi = window.parent; // acquireVsCodeApi()
4
+ const rpc = new Rpc((m) => vscodeApi.postMessage(JSON.stringify(m)));
5
+ window.addEventListener('message', e => rpc.messageReceived(JSON.parse(e.data)));
6
+ const editorApi = rpc.getApi();
7
+ const div = document.querySelector('#react_root');
8
+ const api = renderInfoview(editorApi, div);
9
+ rpc.register(api);
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "lean4monaco",
3
+ "version": "1.0.0",
4
+ "type": "module",
5
+ "main": "dist/index.js",
6
+ "files": ["dist"],
7
+ "scripts": {
8
+ "postinstall": "cd server && npm install",
9
+ "start_client": "vite serve dev",
10
+ "build_server": "cd server/LeanProject && lake build",
11
+ "start_server": "cd server && npm start",
12
+ "start": "concurrently \"npm run start_client\" \"npm run start_server\" -n client,server -c \"bgBlue.bold,bgMagenta.bold\"",
13
+ "build": "tsc && cd src && copyfiles \"**/*.json\" \"**/*.css\" ../dist/",
14
+ "test": "concurrently --kill-others \"cd demo && npm install && npm start\" \"wait-on http://localhost:5173 && cypress run\" -n server,cypress -s command-cypress"
15
+ },
16
+ "devDependencies": {
17
+ "@chialab/esbuild-plugin-meta-url": "^0.18.2",
18
+ "@codingame/esbuild-import-meta-url-plugin": "https://gitpkg.vercel.app/abentkamp/monacotest2/esbuild-import-meta-url-plugin?ec9666e",
19
+ "@types/node": "^20.14.2",
20
+ "@types/semver": "^7.5.8",
21
+ "@types/vscode": "^1.89.0",
22
+ "copyfiles": "^2.4.1",
23
+ "cypress": "^13.13.0",
24
+ "cypress-iframe": "^1.0.1",
25
+ "typescript": "^5.4.5",
26
+ "vite": "^5.2.0",
27
+ "vite-plugin-node-polyfills": "^0.22.0",
28
+ "wait-on": "^7.2.0"
29
+ },
30
+ "dependencies": {
31
+ "@codingame/monaco-vscode-views-service-override": "^6.0.1",
32
+ "@leanprover/infoview": "^0.7.0",
33
+ "@leanprover/infoview-api": "^0.4.0",
34
+ "@leanprover/unicode-input": "^0.1.0",
35
+ "axios": "^1.7.2",
36
+ "cheerio": "^1.0.0-rc.12",
37
+ "concurrently": "^8.2.2",
38
+ "memfs": "^4.9.3",
39
+ "mobx": "5.15.7",
40
+ "monaco-editor-wrapper": "^5.3.1",
41
+ "react-dom": "^18.3.1",
42
+ "semver": "^7.6.2",
43
+ "zod": "^3.23.8"
44
+ }
45
+ }