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.
- package/README.md +79 -0
- package/dist/editor.d.ts +10 -0
- package/dist/editor.js +31 -0
- package/dist/importmetaurl.d.ts +2 -0
- package/dist/importmetaurl.js +26 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/infowebview.d.ts +21 -0
- package/dist/infowebview.js +80 -0
- package/dist/leanmonaco.d.ts +26 -0
- package/dist/leanmonaco.js +205 -0
- package/dist/monaco-lean4/lean4-infoview/package.json +59 -0
- package/dist/monaco-lean4/lean4-infoview/src/infoview/index.css +272 -0
- package/dist/monaco-lean4/lean4-infoview/test/tsconfig.json +7 -0
- package/dist/monaco-lean4/lean4-infoview/tsconfig.json +34 -0
- package/dist/monaco-lean4/lean4-infoview-api/package.json +20 -0
- package/dist/monaco-lean4/lean4-infoview-api/tsconfig.json +29 -0
- package/dist/monaco-lean4/lean4-unicode-input/package.json +19 -0
- package/dist/monaco-lean4/lean4-unicode-input/src/abbreviations.json +1836 -0
- package/dist/monaco-lean4/lean4-unicode-input/tsconfig.json +18 -0
- package/dist/monaco-lean4/lean4-unicode-input-component/package.json +22 -0
- package/dist/monaco-lean4/lean4-unicode-input-component/tsconfig.json +18 -0
- package/dist/monaco-lean4/lerna.json +4 -0
- package/dist/monaco-lean4/package-lock.json +14153 -0
- package/dist/monaco-lean4/package.json +39 -0
- package/dist/monaco-lean4/vscode-lean4/abbreviationview/tsconfig.json +10 -0
- package/dist/monaco-lean4/vscode-lean4/language-configuration.json +157 -0
- package/dist/monaco-lean4/vscode-lean4/loogleview/static/index.css +94 -0
- package/dist/monaco-lean4/vscode-lean4/loogleview/tsconfig.json +10 -0
- package/dist/monaco-lean4/vscode-lean4/package.json +944 -0
- package/dist/monaco-lean4/vscode-lean4/src/abbreviation/AbbreviationFeature.d.ts +8 -0
- package/dist/monaco-lean4/vscode-lean4/src/abbreviation/AbbreviationFeature.js +20 -0
- package/dist/monaco-lean4/vscode-lean4/src/abbreviation/AbbreviationHoverProvider.d.ts +12 -0
- package/dist/monaco-lean4/vscode-lean4/src/abbreviation/AbbreviationHoverProvider.js +40 -0
- package/dist/monaco-lean4/vscode-lean4/src/abbreviation/AbbreviationRewriterFeature.d.ts +19 -0
- package/dist/monaco-lean4/vscode-lean4/src/abbreviation/AbbreviationRewriterFeature.js +77 -0
- package/dist/monaco-lean4/vscode-lean4/src/abbreviation/VSCodeAbbreviationConfig.d.ts +13 -0
- package/dist/monaco-lean4/vscode-lean4/src/abbreviation/VSCodeAbbreviationConfig.js +29 -0
- package/dist/monaco-lean4/vscode-lean4/src/abbreviation/VSCodeAbbreviationRewriter.d.ts +27 -0
- package/dist/monaco-lean4/vscode-lean4/src/abbreviation/VSCodeAbbreviationRewriter.js +122 -0
- package/dist/monaco-lean4/vscode-lean4/src/config.d.ts +33 -0
- package/dist/monaco-lean4/vscode-lean4/src/config.js +119 -0
- package/dist/monaco-lean4/vscode-lean4/src/diagnostics/setupNotifs.d.ts +27 -0
- package/dist/monaco-lean4/vscode-lean4/src/diagnostics/setupNotifs.js +133 -0
- package/dist/monaco-lean4/vscode-lean4/src/infoview.d.ts +69 -0
- package/dist/monaco-lean4/vscode-lean4/src/infoview.js +711 -0
- package/dist/monaco-lean4/vscode-lean4/src/leanclient.d.ts +67 -0
- package/dist/monaco-lean4/vscode-lean4/src/leanclient.js +443 -0
- package/dist/monaco-lean4/vscode-lean4/src/rpc.d.ts +16 -0
- package/dist/monaco-lean4/vscode-lean4/src/rpc.js +102 -0
- package/dist/monaco-lean4/vscode-lean4/src/taskgutter.d.ts +11 -0
- package/dist/monaco-lean4/vscode-lean4/src/taskgutter.js +130 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/batch.d.ts +37 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/batch.js +203 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/clientProvider.d.ts +41 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/clientProvider.js +205 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/converters.d.ts +16 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/converters.js +129 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/elan.d.ts +3 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/elan.js +4 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/envPath.d.ts +21 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/envPath.js +53 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/exturi.d.ts +35 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/exturi.js +136 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/fsHelper.d.ts +17 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/fsHelper.js +36 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/leanInstaller.d.ts +37 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/leanInstaller.js +210 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/logger.d.ts +7 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/logger.js +20 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/notifs.d.ts +24 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/notifs.js +110 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/projectInfo.d.ts +9 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/projectInfo.js +125 -0
- package/dist/monaco-lean4/vscode-lean4/syntaxes/codeblock.json +45 -0
- package/dist/monaco-lean4/vscode-lean4/syntaxes/lean4-markdown.json +2637 -0
- package/dist/monaco-lean4/vscode-lean4/syntaxes/lean4.json +127 -0
- package/dist/monaco-lean4/vscode-lean4/tsconfig.json +18 -0
- package/dist/monaco-lean4/vscode-lean4/webview/tsconfig.json +11 -0
- package/dist/monacoleanclient.d.ts +4 -0
- package/dist/monacoleanclient.js +17 -0
- package/dist/preconditions.d.ts +4 -0
- package/dist/preconditions.js +3 -0
- package/dist/vscode.css +408 -0
- package/dist/webview.d.ts +1 -0
- package/dist/webview.js +9 -0
- package/package.json +45 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@leanprover/vscode-lean4-repo",
|
|
3
|
+
"private": true,
|
|
4
|
+
"scripts": {
|
|
5
|
+
"build": "lerna run --stream build",
|
|
6
|
+
"test": "lerna run --stream test",
|
|
7
|
+
"watch": "lerna run --parallel --stream watch",
|
|
8
|
+
"watchTest": "lerna run --parallel --stream watchTest",
|
|
9
|
+
"lint": "eslint -c .eslintrc.js \"{lean4-infoview-api,lean4-infoview,lean4-unicode-input,lean4-unicode-input-component,vscode-lean4}/src/**/*.{ts,tsx}\" \"vscode-lean4/test/suite/**/*.{ts,tsx}\"",
|
|
10
|
+
"prepare": "husky install"
|
|
11
|
+
},
|
|
12
|
+
"workspaces": [
|
|
13
|
+
"lean4-infoview-api",
|
|
14
|
+
"lean4-infoview",
|
|
15
|
+
"lean4-unicode-input",
|
|
16
|
+
"lean4-unicode-input-component",
|
|
17
|
+
"vscode-lean4"
|
|
18
|
+
],
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@typescript-eslint/eslint-plugin": "^7.9.0",
|
|
21
|
+
"@typescript-eslint/parser": "^7.9.0",
|
|
22
|
+
"eslint": "^8.45.0",
|
|
23
|
+
"eslint-config-prettier": "^9.1.0",
|
|
24
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
25
|
+
"husky": "^9.0.11",
|
|
26
|
+
"lerna": "^8.1.2",
|
|
27
|
+
"lint-staged": "^15.2.2",
|
|
28
|
+
"prettier": "^3.2.5",
|
|
29
|
+
"prettier-plugin-organize-imports": "^3.2.4",
|
|
30
|
+
"typescript": "^5.4.5"
|
|
31
|
+
},
|
|
32
|
+
"lint-staged": {
|
|
33
|
+
"*.{ts,tsx,js}": [
|
|
34
|
+
"eslint --cache --fix",
|
|
35
|
+
"prettier --write"
|
|
36
|
+
],
|
|
37
|
+
"*.{json,css}": "prettier --write"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
{
|
|
2
|
+
"comments": {
|
|
3
|
+
"lineComment": "--",
|
|
4
|
+
"blockComment": ["/-", "-/"]
|
|
5
|
+
},
|
|
6
|
+
"brackets": [
|
|
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
|
+
["s!\"", "\""],
|
|
53
|
+
["f!\"", "\""],
|
|
54
|
+
["m!\"", "\""]
|
|
55
|
+
],
|
|
56
|
+
"autoClosingPairs": [
|
|
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
|
+
["s!\"", "\""],
|
|
103
|
+
["f!\"", "\""],
|
|
104
|
+
["m!\"", "\""]
|
|
105
|
+
],
|
|
106
|
+
"surroundingPairs": [
|
|
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
|
+
"wordPattern": "([^`~@$%^&*()\\-=+\\[{\\]}⟨⟩⦃⦄⟦⟧⟮⟯‹›<>\\\\|;:\",./\\s]+)",
|
|
151
|
+
"onEnterRules": [
|
|
152
|
+
{
|
|
153
|
+
"beforeText": "^\\s*(·|\\.)\\s.*$",
|
|
154
|
+
"action": { "indent": "indent" }
|
|
155
|
+
}
|
|
156
|
+
]
|
|
157
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
.loader {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
margin-left: 8px;
|
|
4
|
+
border: 4px solid #f3f3f3; /* Light grey */
|
|
5
|
+
border-top: 4px solid #3498db; /* Blue */
|
|
6
|
+
border-radius: 50%;
|
|
7
|
+
width: 16px;
|
|
8
|
+
height: 16px;
|
|
9
|
+
animation: spin 2s linear infinite;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@keyframes spin {
|
|
13
|
+
0% {
|
|
14
|
+
transform: rotate(0deg);
|
|
15
|
+
}
|
|
16
|
+
100% {
|
|
17
|
+
transform: rotate(360deg);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.hidden {
|
|
22
|
+
display: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.query-label {
|
|
26
|
+
display: block;
|
|
27
|
+
color: var(--foreground);
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
font-size: var(--type-ramp-base-font-size);
|
|
30
|
+
line-height: var(--type-ramp-base-line-height);
|
|
31
|
+
margin-bottom: 2px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.query-container {
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.input-container {
|
|
40
|
+
display: flex;
|
|
41
|
+
justify-content: space-between;
|
|
42
|
+
align-items: center;
|
|
43
|
+
width: 70ch;
|
|
44
|
+
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
position: relative;
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: row;
|
|
49
|
+
color: var(--input-foreground);
|
|
50
|
+
background: var(--input-background);
|
|
51
|
+
border-radius: calc(var(--corner-radius-round) * 1px);
|
|
52
|
+
border: calc(var(--border-width) * 1px) solid var(--dropdown-border);
|
|
53
|
+
height: calc(var(--input-height) * 1px);
|
|
54
|
+
min-width: var(--input-min-width);
|
|
55
|
+
font-family: var(--font-family);
|
|
56
|
+
outline: none;
|
|
57
|
+
user-select: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.input-container:focus-within:not([disabled]) {
|
|
61
|
+
border-color: var(--focus-border);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
[contenteditable='true'].single-line {
|
|
65
|
+
white-space: nowrap;
|
|
66
|
+
width: 60ch;
|
|
67
|
+
overflow: hidden;
|
|
68
|
+
outline: none;
|
|
69
|
+
|
|
70
|
+
height: calc(100% - (var(--design-unit) * 1px));
|
|
71
|
+
margin-top: auto;
|
|
72
|
+
margin-bottom: auto;
|
|
73
|
+
border: none;
|
|
74
|
+
padding: 0 calc(var(--design-unit) * 2px + 1px);
|
|
75
|
+
font-size: var(--type-ramp-base-font-size);
|
|
76
|
+
line-height: var(--type-ramp-base-line-height);
|
|
77
|
+
}
|
|
78
|
+
[contenteditable='true'].single-line br {
|
|
79
|
+
display: none;
|
|
80
|
+
}
|
|
81
|
+
[contenteditable='true'].single-line * {
|
|
82
|
+
display: inline;
|
|
83
|
+
white-space: nowrap;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
vscode-button {
|
|
87
|
+
vertical-align: middle;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.input-buttons {
|
|
91
|
+
display: inline-flex;
|
|
92
|
+
margin-left: 0.5em;
|
|
93
|
+
margin-right: 0.5em;
|
|
94
|
+
}
|