lean4monaco 1.0.11 → 1.0.12

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 (75) hide show
  1. package/README.md +29 -11
  2. package/dist/infowebview.js +20 -20
  3. package/dist/leanmonaco.d.ts +9 -0
  4. package/package.json +39 -17
  5. package/dist/monaco-lean4/lean4-infoview/package.json +0 -59
  6. package/dist/monaco-lean4/lean4-infoview/src/infoview/index.css +0 -272
  7. package/dist/monaco-lean4/lean4-infoview/test/tsconfig.json +0 -7
  8. package/dist/monaco-lean4/lean4-infoview/tsconfig.json +0 -34
  9. package/dist/monaco-lean4/lean4-infoview-api/package.json +0 -20
  10. package/dist/monaco-lean4/lean4-infoview-api/tsconfig.json +0 -29
  11. package/dist/monaco-lean4/lean4-unicode-input/package.json +0 -19
  12. package/dist/monaco-lean4/lean4-unicode-input/src/abbreviations.json +0 -1836
  13. package/dist/monaco-lean4/lean4-unicode-input/tsconfig.json +0 -18
  14. package/dist/monaco-lean4/lean4-unicode-input-component/package.json +0 -22
  15. package/dist/monaco-lean4/lean4-unicode-input-component/tsconfig.json +0 -18
  16. package/dist/monaco-lean4/lerna.json +0 -4
  17. package/dist/monaco-lean4/package-lock.json +0 -14153
  18. package/dist/monaco-lean4/package.json +0 -39
  19. package/dist/monaco-lean4/vscode-lean4/abbreviationview/tsconfig.json +0 -10
  20. package/dist/monaco-lean4/vscode-lean4/language-configuration.json +0 -157
  21. package/dist/monaco-lean4/vscode-lean4/loogleview/static/index.css +0 -94
  22. package/dist/monaco-lean4/vscode-lean4/loogleview/tsconfig.json +0 -10
  23. package/dist/monaco-lean4/vscode-lean4/package.json +0 -944
  24. package/dist/monaco-lean4/vscode-lean4/src/abbreviation/AbbreviationFeature.d.ts +0 -9
  25. package/dist/monaco-lean4/vscode-lean4/src/abbreviation/AbbreviationFeature.js +0 -20
  26. package/dist/monaco-lean4/vscode-lean4/src/abbreviation/AbbreviationHoverProvider.d.ts +0 -12
  27. package/dist/monaco-lean4/vscode-lean4/src/abbreviation/AbbreviationHoverProvider.js +0 -40
  28. package/dist/monaco-lean4/vscode-lean4/src/abbreviation/AbbreviationRewriterFeature.d.ts +0 -20
  29. package/dist/monaco-lean4/vscode-lean4/src/abbreviation/AbbreviationRewriterFeature.js +0 -79
  30. package/dist/monaco-lean4/vscode-lean4/src/abbreviation/VSCodeAbbreviationConfig.d.ts +0 -13
  31. package/dist/monaco-lean4/vscode-lean4/src/abbreviation/VSCodeAbbreviationConfig.js +0 -29
  32. package/dist/monaco-lean4/vscode-lean4/src/abbreviation/VSCodeAbbreviationRewriter.d.ts +0 -28
  33. package/dist/monaco-lean4/vscode-lean4/src/abbreviation/VSCodeAbbreviationRewriter.js +0 -124
  34. package/dist/monaco-lean4/vscode-lean4/src/config.d.ts +0 -33
  35. package/dist/monaco-lean4/vscode-lean4/src/config.js +0 -119
  36. package/dist/monaco-lean4/vscode-lean4/src/diagnostics/setupNotifs.d.ts +0 -27
  37. package/dist/monaco-lean4/vscode-lean4/src/diagnostics/setupNotifs.js +0 -133
  38. package/dist/monaco-lean4/vscode-lean4/src/infoview.d.ts +0 -69
  39. package/dist/monaco-lean4/vscode-lean4/src/infoview.js +0 -711
  40. package/dist/monaco-lean4/vscode-lean4/src/leanclient.d.ts +0 -67
  41. package/dist/monaco-lean4/vscode-lean4/src/leanclient.js +0 -443
  42. package/dist/monaco-lean4/vscode-lean4/src/rpc.d.ts +0 -16
  43. package/dist/monaco-lean4/vscode-lean4/src/rpc.js +0 -102
  44. package/dist/monaco-lean4/vscode-lean4/src/taskgutter.d.ts +0 -11
  45. package/dist/monaco-lean4/vscode-lean4/src/taskgutter.js +0 -130
  46. package/dist/monaco-lean4/vscode-lean4/src/utils/batch.d.ts +0 -37
  47. package/dist/monaco-lean4/vscode-lean4/src/utils/batch.js +0 -203
  48. package/dist/monaco-lean4/vscode-lean4/src/utils/clientProvider.d.ts +0 -41
  49. package/dist/monaco-lean4/vscode-lean4/src/utils/clientProvider.js +0 -205
  50. package/dist/monaco-lean4/vscode-lean4/src/utils/converters.d.ts +0 -16
  51. package/dist/monaco-lean4/vscode-lean4/src/utils/converters.js +0 -129
  52. package/dist/monaco-lean4/vscode-lean4/src/utils/elan.d.ts +0 -3
  53. package/dist/monaco-lean4/vscode-lean4/src/utils/elan.js +0 -4
  54. package/dist/monaco-lean4/vscode-lean4/src/utils/envPath.d.ts +0 -21
  55. package/dist/monaco-lean4/vscode-lean4/src/utils/envPath.js +0 -53
  56. package/dist/monaco-lean4/vscode-lean4/src/utils/exturi.d.ts +0 -35
  57. package/dist/monaco-lean4/vscode-lean4/src/utils/exturi.js +0 -136
  58. package/dist/monaco-lean4/vscode-lean4/src/utils/fsHelper.d.ts +0 -17
  59. package/dist/monaco-lean4/vscode-lean4/src/utils/fsHelper.js +0 -36
  60. package/dist/monaco-lean4/vscode-lean4/src/utils/leanInstaller.d.ts +0 -37
  61. package/dist/monaco-lean4/vscode-lean4/src/utils/leanInstaller.js +0 -210
  62. package/dist/monaco-lean4/vscode-lean4/src/utils/logger.d.ts +0 -7
  63. package/dist/monaco-lean4/vscode-lean4/src/utils/logger.js +0 -20
  64. package/dist/monaco-lean4/vscode-lean4/src/utils/notifs.d.ts +0 -24
  65. package/dist/monaco-lean4/vscode-lean4/src/utils/notifs.js +0 -110
  66. package/dist/monaco-lean4/vscode-lean4/src/utils/projectInfo.d.ts +0 -9
  67. package/dist/monaco-lean4/vscode-lean4/src/utils/projectInfo.js +0 -125
  68. package/dist/monaco-lean4/vscode-lean4/syntaxes/codeblock.json +0 -45
  69. package/dist/monaco-lean4/vscode-lean4/syntaxes/lean4-markdown.json +0 -2637
  70. package/dist/monaco-lean4/vscode-lean4/syntaxes/lean4.json +0 -127
  71. package/dist/monaco-lean4/vscode-lean4/tsconfig.json +0 -18
  72. package/dist/monaco-lean4/vscode-lean4/webview/tsconfig.json +0 -11
  73. package/dist/vscode.css +0 -7
  74. package/dist/webview.d.ts +0 -1
  75. package/dist/webview.js +0 -17
package/README.md CHANGED
@@ -85,23 +85,28 @@ export default {
85
85
  },
86
86
  [...]
87
87
  }
88
- ```
89
-
90
- Moreover, the infoview javascript files need to be served:
91
- ```ts
92
- // vite.config.ts
93
- import { viteStaticCopy } from 'vite-plugin-static-copy'
94
- import { normalizePath } from 'vite'
95
- import path from 'node:path'
96
-
97
- export default {
88
+ ``` "devDependencies": {
89
+ "@chialab/esbuild-plugin-meta-url": "^0.18.2",
90
+ "@codingame/esbuild-import-meta-url-plugin": "https://gitpkg.vercel.app/abentkamp/monacotest2/esbuild-import-meta-url-plugin?ec9666e",
91
+ "@types/node": "^20.14.2",
92
+ "@types/semver": "^7.5.8",
93
+ "@types/vscode": "^1.89.0",
94
+ "copyfiles": "^2.4.1",
95
+ "cypress": "^13.13.0",
96
+ "cypress-iframe": "^1.0.1",
97
+ "ts-loader": "^9.5.1",
98
+ "typescript": "^5.4.5",
99
+ "wait-on": "^7.2.0",
100
+ "webpack": "^5.93.0",
101
+ "webpack-cli": "^5.1.4"
102
+ },
98
103
  plugins: [
99
104
  viteStaticCopy({
100
105
  targets: [
101
106
  {
102
107
  src: [
103
108
  normalizePath(path.resolve(__dirname, './node_modules/@leanprover/infoview/dist/*')),
104
- normalizePath(path.resolve(__dirname, './node_modules/lean4monaco/webview/webview.js')),
109
+ normalizePath(path.resolve(__dirname, './node_modules/lean4monaco/dist/webview/webview.js')),
105
110
  ],
106
111
  dest: 'infoview'
107
112
  }
@@ -111,6 +116,19 @@ export default {
111
116
  }
112
117
  ```
113
118
 
119
+ ## Demo
120
+
121
+ You can clone `lean4monaco`, then run the demo located in `lean4monaco/demo/` with
122
+
123
+ ```
124
+ cd lean4monaco
125
+ npm install
126
+ npm start
127
+ ```
128
+
129
+ and open [http://localhost:5173](http://localhost:5173). This should open a rudimentary webpage
130
+ with 1 (or more) monaco editors and an infoview, showing the Lean infos at the cursor.
131
+
114
132
  ## Troubleshooting
115
133
 
116
134
  * Make sure that only one version of the npm package `monaco-vscode-api` is installed.
@@ -118,25 +118,25 @@ export class IFrameInfoWebviewFactory {
118
118
  }
119
119
  initialHtml(stylesheet) {
120
120
  return `
121
- <!DOCTYPE html>
122
- <html>
123
- <head>
124
- <meta charset="UTF-8" />
125
- <meta http-equiv="Content-type" content="text/html;charset=utf-8">
126
- <title>Infoview</title>
127
- <style>${stylesheet}</style>
128
- <style>
129
- body {
130
- background-color: var(--vscode-editor-background);
131
- color: var(--vscode-editor-foreground);
132
- }
133
- </style>
134
- <link rel="stylesheet" href="${new URL('../node_modules/@leanprover/infoview/dist/index.css', import.meta.url)}">
135
- </head>
136
- <body>
137
- <div id="react_root"></div>
138
- <script type="module" src="/infoview/webview.js"></script>
139
- </body>
140
- </html>`;
121
+ <!DOCTYPE html>
122
+ <html>
123
+ <head>
124
+ <meta charset="UTF-8" />
125
+ <meta http-equiv="Content-type" content="text/html;charset=utf-8">
126
+ <title>Infoview</title>
127
+ <style>${stylesheet}</style>
128
+ <style>
129
+ body {
130
+ background-color: var(--vscode-editor-background);
131
+ color: var(--vscode-editor-foreground);
132
+ }
133
+ </style>
134
+ <link rel="stylesheet" href="${new URL('../node_modules/@leanprover/infoview/dist/index.css', import.meta.url)}">
135
+ </head>
136
+ <body>
137
+ <div id="react_root"></div>
138
+ <script type="module" src="/infoview/webview.js"></script>
139
+ </body>
140
+ </html>`;
141
141
  }
142
142
  }
@@ -7,6 +7,15 @@ import { LeanTaskGutter } from './vscode-lean4/vscode-lean4/src/taskgutter';
7
7
  import { IFrameInfoWebviewFactory } from './infowebview';
8
8
  import { IExtensionManifest } from 'vscode/extensions';
9
9
  import { DisposableStore } from 'vscode/monaco';
10
+ /** Options for LeanMonaco.
11
+ *
12
+ * The URL is where the server listens. You might want to use something like
13
+ * `"ws://" + window.location.host`
14
+ *
15
+ * To add settings in `vscode`, you can open your settings in VSCode (Ctrl+,), search
16
+ * for the desired setting, select "Copy Setting as JSON" from the "More Actions"
17
+ * menu next to the selected setting, and paste the copied string here.
18
+ */
10
19
  export type LeanMonacoOptions = {
11
20
  websocket: {
12
21
  url: string;
package/package.json CHANGED
@@ -1,11 +1,33 @@
1
1
  {
2
2
  "name": "lean4monaco",
3
- "version": "1.0.11",
4
- "type": "module",
5
- "main": "dist/index.js",
3
+ "version": "1.0.12",
4
+ "description": "Monaco Editor support for the Lean 4 theorem prover.",
5
+ "keywords": [
6
+ "lean",
7
+ "leanprover",
8
+ "monaco",
9
+ "editor",
10
+ "vscode"
11
+ ],
12
+ "homepage": "https://github.com/hhu-adam/lean4monaco",
13
+ "bugs": {
14
+ "url": "https://github.com/hhu-adam/lean4monaco/issues"
15
+ },
16
+ "license": "Apache-2.0",
17
+ "author": {
18
+ "name": "Alexander Bentkamp"
19
+ },
20
+ "contributors": [
21
+ {
22
+ "name": "Jon Eugster",
23
+ "url": "https://github.com/joneugster"
24
+ }
25
+ ],
6
26
  "files": [
7
27
  "dist"
8
28
  ],
29
+ "main": "dist/index.js",
30
+ "type": "module",
9
31
  "repository": {
10
32
  "type": "git",
11
33
  "url": "https://github.com/hhu-adam/lean4monaco"
@@ -15,6 +37,20 @@
15
37
  "build": "tsc && webpack && cd src && copyfiles \"**/*.json\" \"**/*.css\" \"**/*.ttf\" ../dist/",
16
38
  "test": "(cd demo && npm install && npm run build_server) && concurrently --kill-others \"npm start 1> /dev/null\" \"wait-on http://localhost:5173 && cypress run\" -n server,cypress -s command-cypress"
17
39
  },
40
+ "dependencies": {
41
+ "@leanprover/infoview": "=0.7.0",
42
+ "@leanprover/infoview-api": "^0.4.0",
43
+ "@leanprover/unicode-input": "^0.1.0",
44
+ "axios": "^1.7.2",
45
+ "cheerio": "^1.0.0-rc.12",
46
+ "concurrently": "^8.2.2",
47
+ "memfs": "^4.9.3",
48
+ "mobx": "5.15.7",
49
+ "monaco-editor-wrapper": "^5.3.1",
50
+ "react-dom": "^18.3.1",
51
+ "semver": "^7.6.2",
52
+ "zod": "^3.23.8"
53
+ },
18
54
  "devDependencies": {
19
55
  "@chialab/esbuild-plugin-meta-url": "^0.18.2",
20
56
  "@codingame/esbuild-import-meta-url-plugin": "https://gitpkg.vercel.app/abentkamp/monacotest2/esbuild-import-meta-url-plugin?ec9666e",
@@ -29,19 +65,5 @@
29
65
  "wait-on": "^7.2.0",
30
66
  "webpack": "^5.93.0",
31
67
  "webpack-cli": "^5.1.4"
32
- },
33
- "dependencies": {
34
- "@leanprover/infoview": "=0.7.0",
35
- "@leanprover/infoview-api": "^0.4.0",
36
- "@leanprover/unicode-input": "^0.1.0",
37
- "axios": "^1.7.2",
38
- "cheerio": "^1.0.0-rc.12",
39
- "concurrently": "^8.2.2",
40
- "memfs": "^4.9.3",
41
- "mobx": "5.15.7",
42
- "monaco-editor-wrapper": "^5.3.1",
43
- "react-dom": "^18.3.1",
44
- "semver": "^7.6.2",
45
- "zod": "^3.23.8"
46
68
  }
47
69
  }
@@ -1,59 +0,0 @@
1
- {
2
- "name": "@leanprover/infoview",
3
- "version": "0.7.2",
4
- "description": "An interactive display for the Lean 4 theorem prover.",
5
- "scripts": {
6
- "watch": "rollup --config --environment NODE_ENV:development --watch",
7
- "build": "rollup --config --environment NODE_ENV:production",
8
- "watchTest": "npm run watch",
9
- "test": "tsc -p test/tsconfig.json"
10
- },
11
- "exports": {
12
- ".": "./dist/index.development.js",
13
- "./loader": "./dist/loader.production.min.js",
14
- "./package.json": "./package.json"
15
- },
16
- "typesVersions": {
17
- "*": {
18
- "*": [
19
- "dist/index.d.ts"
20
- ],
21
- "loader": [
22
- "dist/loader.d.ts"
23
- ]
24
- }
25
- },
26
- "files": [
27
- "dist/*"
28
- ],
29
- "type": "module",
30
- "license": "Apache-2.0",
31
- "devDependencies": {
32
- "@floating-ui/react": "^0.24.7",
33
- "@rollup/plugin-commonjs": "^23.0.7",
34
- "@rollup/plugin-node-resolve": "^15.1.0",
35
- "@rollup/plugin-replace": "^5.0.2",
36
- "@rollup/plugin-terser": "^0.1.0",
37
- "@rollup/plugin-typescript": "^9.0.2",
38
- "@rollup/plugin-url": "^8.0.1",
39
- "@types/marked": "^4.3.1",
40
- "@types/react": "^18.2.15",
41
- "@types/react-dom": "^18.2.7",
42
- "current-release": "npm:@leanprover/infoview@latest",
43
- "react": "^18.2.0",
44
- "react-dom": "^18.2.0",
45
- "rollup": "^3.26.2",
46
- "rollup-plugin-css-only": "^4.3.0",
47
- "typescript": "^5.4.5"
48
- },
49
- "dependencies": {
50
- "@leanprover/infoview-api": "~0.4.0",
51
- "@vscode/codicons": "^0.0.32",
52
- "@vscode/webview-ui-toolkit": "^1.4.0",
53
- "es-module-shims": "^1.7.3",
54
- "marked": "^4.3.0",
55
- "react-fast-compare": "^3.2.2",
56
- "tachyons": "^4.12.0",
57
- "vscode-languageserver-protocol": "^3.17.3"
58
- }
59
- }
@@ -1,272 +0,0 @@
1
- /* Some styles specific to the infoview. */
2
-
3
- html,
4
- body {
5
- height: 100%;
6
- }
7
-
8
- .font-code {
9
- color: var(--vscode-editor-foreground);
10
- font-family: var(--vscode-editor-font-family);
11
- font-weight: var(--vscode-editor-font-weight);
12
- font-size: var(--vscode-editor-font-size);
13
- line-height: var(--vscode-editor-line-height);
14
- }
15
-
16
- .font-size-code-smaller {
17
- font-size: calc(0.8 * var(--vscode-editor-font-size));
18
- line-height: calc(0.8 * var(--vscode-editor-line-height));
19
- }
20
-
21
- .font-normal {
22
- font-family: var(--vscode-font-family);
23
- font-weight: var(--vscode-font-weight);
24
- font-size: var(--vscode-font-size);
25
- }
26
-
27
- .codicon-blank {
28
- width: 20px;
29
- height: 16px;
30
- }
31
-
32
- /* These are syntax highlights for the string goal view. */
33
- .goal-goals {
34
- color: var(--vscode-lean4-infoView\.goalCount);
35
- }
36
- .goal-vdash {
37
- color: var(--vscode-lean4-infoView\.turnstile);
38
- }
39
- .goal-case {
40
- color: var(--vscode-lean4-infoView\.caseLabel);
41
- }
42
- .goal-hyp {
43
- color: var(--vscode-lean4-infoView\.hypothesisName);
44
- }
45
- .goal-inaccessible {
46
- color: var(--vscode-lean4-infoView\.inaccessibleHypothesisName);
47
- opacity: 0.7;
48
- font-style: italic;
49
- font-weight: normal;
50
- }
51
-
52
- /* Used to denote text highlighted by the pretty-print expression widget. */
53
- .highlightable {
54
- border-radius: 2pt;
55
- transition: background-color 100ms ease-in-out;
56
- }
57
-
58
- .highlight {
59
- background-color: var(--vscode-editor-selectionBackground) !important;
60
- }
61
-
62
- .highlight-selected {
63
- background-color: var(--vscode-editorOverviewRuler-rangeHighlightForeground);
64
- }
65
-
66
- /* Interactive traces */
67
- .trace-line:hover {
68
- background-color: #dbeeff;
69
- }
70
- .vscode-dark .trace-line:hover {
71
- background-color: #1a2c3c;
72
- }
73
- .trace-class {
74
- opacity: 0.4;
75
- }
76
-
77
- .pre-wrap {
78
- white-space: pre-wrap;
79
- }
80
-
81
- .error {
82
- color: #e51400;
83
- }
84
-
85
- .warning {
86
- color: #bf8803;
87
- }
88
-
89
- .information {
90
- color: darkgreen;
91
- }
92
-
93
- .vscode-dark .error {
94
- color: #f14c4c;
95
- }
96
-
97
- .vscode-dark .warning {
98
- color: #cca700;
99
- }
100
-
101
- .vscode-dark .information {
102
- color: #89d185;
103
- }
104
-
105
- .vscode-high-contrast .error {
106
- color: lightpink;
107
- }
108
-
109
- .vscode-high-contrast .warning {
110
- color: yellow;
111
- }
112
-
113
- .vscode-high-contrast .information {
114
- color: lightgreen;
115
- }
116
-
117
- /* Headers for infoview */
118
-
119
- .restart-file-button {
120
- position: fixed;
121
- bottom: 10px;
122
- right: 10px;
123
- z-index: 37;
124
- }
125
-
126
- select {
127
- background-color: var(--vscode-dropdown-background);
128
- color: var(--vscode-dropdown-foreground);
129
- border-color: var(--vscode-dropdown-border);
130
- }
131
-
132
- /* Style for the rounded box that is the outermost div of every tooltip.
133
- * We use more specific classes for styling tooltip contents. */
134
- .tooltip {
135
- background-color: var(--vscode-editorHoverWidget-background);
136
- border-radius: 4px;
137
- border-color: var(--vscode-editorHoverWidget-border);
138
- border-width: 1px;
139
- border-style: solid;
140
- box-shadow: 1px 1px 5px var(--vscode-widget-shadow);
141
- box-sizing: border-box;
142
- /* Note: max-height is set in JS. */
143
- max-width: 70%;
144
- /* Flexbox ensures that contents don't overflow. */
145
- display: flex;
146
- }
147
-
148
- .tooltip-content {
149
- padding: 4px 8px;
150
- overflow-y: auto;
151
- overscroll-behavior: contain;
152
- }
153
-
154
- /* Contents of a list of selections shown as a tooltip. */
155
- .tooltip-menu-content {
156
- color: var(--vscode-editorHoverWidget-foreground);
157
- }
158
-
159
- .tooltip-menu-content .tooltip-menu-text {
160
- text-align: center;
161
- padding: 5px;
162
- vertical-align: top;
163
- display: inline-block;
164
- }
165
-
166
- .tooltip-menu-content .tooltip-menu-icon {
167
- padding: 0px;
168
- margin-top: 6px;
169
- }
170
-
171
- /*---------------------------------------------------------------------------------------------
172
- * Copyright (c) Microsoft Corporation. All rights reserved.
173
- * Licensed under the MIT License. See License.txt in the project root for license information.
174
- *--------------------------------------------------------------------------------------------*/
175
- /* adapted from https://github.com/microsoft/vscode/blob/main/src/vs/base/browser/ui/hover/hover.css */
176
-
177
- /* Contents of a code tooltip showing a value, type, documentation, etc. */
178
- .tooltip-code-content {
179
- color: var(--vscode-editorHoverWidget-foreground);
180
- line-height: var(--vscode-editor-line-height);
181
- }
182
-
183
- .tooltip-code-content a:hover {
184
- cursor: pointer;
185
- }
186
-
187
- .tooltip-code-content p,
188
- .tooltip-code-content .code,
189
- .tooltip-code-content ul {
190
- margin: 8px 0;
191
- }
192
-
193
- .tooltip-code-content hr {
194
- box-sizing: border-box;
195
- border-left: -8px;
196
- border-right: -8px;
197
- margin-top: 4px;
198
- margin-bottom: 4px;
199
- height: 1px;
200
- border-bottom-width: 0px;
201
- border-top-width: 1px;
202
- border-top-style: solid;
203
- border-top-color: var(--vscode-editorHoverWidget-border);
204
- }
205
-
206
- .tooltip-code-content p:first-child,
207
- .tooltip-code-content .code:first-child,
208
- .tooltip-code-content ul:first-child {
209
- margin-top: 0;
210
- }
211
-
212
- .tooltip-code-content p:last-child,
213
- .tooltip-code-content .code:last-child,
214
- .tooltip-code-content ul:last-child {
215
- margin-bottom: 0;
216
- }
217
-
218
- /* MarkupContent Layout */
219
- .tooltip-code-content ul {
220
- padding-left: 20px;
221
- }
222
- .tooltip-code-content ol {
223
- padding-left: 20px;
224
- }
225
-
226
- .tooltip-code-content li > p {
227
- margin-bottom: 0;
228
- }
229
-
230
- .tooltip-code-content li > ul {
231
- margin-top: 0;
232
- }
233
-
234
- .tooltip-code-content code {
235
- border-radius: 3px;
236
- padding: 0 0.4em;
237
- background-color: var(--vscode-textCodeBlock-background);
238
- }
239
-
240
- .vscode-high-contrast .inserted-text {
241
- border: thin solid var(--vscode-diffEditor-insertedTextBorder);
242
- }
243
-
244
- .vscode-high-contrast .removed-text {
245
- border: thin solid var(--vscode-diffEditor-removedTextBorder);
246
- }
247
-
248
- .inserted-text {
249
- background-color: var(--vscode-diffEditor-insertedTextBackground);
250
- border-radius: 2pt;
251
- }
252
-
253
- .removed-text {
254
- background-color: var(--vscode-diffEditor-removedTextBackground);
255
- border-radius: 2pt;
256
- }
257
-
258
- .b--inserted {
259
- border-color: var(--vscode-diffEditor-insertedTextBackground) !important;
260
- }
261
-
262
- .b--modified {
263
- border-color: var(--vscode-diffEditor-insertedTextBackground) !important;
264
- }
265
-
266
- .b--removed {
267
- border-color: var(--vscode-diffEditor-removedTextBackground) !important;
268
- }
269
-
270
- .b--transparent {
271
- border-color: transparent;
272
- }
@@ -1,7 +0,0 @@
1
- {
2
- "extends": "../tsconfig",
3
- "compilerOptions": {
4
- "rootDir": "../"
5
- },
6
- "include": ["./**/*", "../src/**/*"]
7
- }
@@ -1,34 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- /* Projects */
4
- "composite": true,
5
-
6
- /* Language and Environment */
7
- "target": "esnext",
8
- "lib": ["DOM", "DOM.Iterable", "ESNext"],
9
- "jsx": "react-jsx",
10
-
11
- /* Modules */
12
- "module": "esnext",
13
- "moduleResolution": "node",
14
-
15
- /* Emit */
16
- "sourceMap": true,
17
- "rootDir": "src",
18
- "outDir": "dist",
19
-
20
- /* Interop Constraints */
21
- "esModuleInterop": true,
22
- "forceConsistentCasingInFileNames": true,
23
-
24
- /* Type Checking */
25
- "strict": true,
26
- "noImplicitAny": true,
27
- "noFallthroughCasesInSwitch": true,
28
-
29
- /* Completeness */
30
- "skipLibCheck": true
31
- },
32
- "include": ["src/**/*"],
33
- "exclude": ["dist"]
34
- }
@@ -1,20 +0,0 @@
1
- {
2
- "name": "@leanprover/infoview-api",
3
- "version": "0.4.0",
4
- "description": "Types and API for @leanprover/infoview.",
5
- "scripts": {
6
- "watch": "tsc --watch",
7
- "watchTest": "tsc --watch",
8
- "build": "tsc"
9
- },
10
- "main": "dist/index",
11
- "types": "dist/index",
12
- "files": [
13
- "dist/*"
14
- ],
15
- "license": "Apache-2.0",
16
- "devDependencies": {
17
- "typescript": "^5.4.5",
18
- "vscode-languageserver-protocol": "^3.17.3"
19
- }
20
- }
@@ -1,29 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- /* Code generation */
4
- "target": "ES2021",
5
- "module": "ES6",
6
- "lib": ["dom", "dom.iterable", "ES2021"],
7
- "allowJs": true,
8
- "esModuleInterop": true,
9
-
10
- /* Type-checking */
11
- "strict": true,
12
- "noFallthroughCasesInSwitch": true,
13
- "skipLibCheck": true,
14
-
15
- /* Module resolution */
16
- "moduleResolution": "node",
17
- "allowSyntheticDefaultImports": true,
18
- "forceConsistentCasingInFileNames": true,
19
-
20
- /* Output */
21
- "composite": true,
22
- "rootDir": "src/",
23
- "outDir": "dist/",
24
- "declaration": true,
25
- "sourceMap": true
26
- },
27
-
28
- "include": ["src/**/*"]
29
- }
@@ -1,19 +0,0 @@
1
- {
2
- "name": "@leanprover/unicode-input",
3
- "version": "0.1.0",
4
- "description": "Unicode input mechanism for the Lean 4 theorem prover",
5
- "scripts": {
6
- "watch": "tsc --watch",
7
- "watchTest": "tsc --watch",
8
- "build": "tsc"
9
- },
10
- "main": "dist/index",
11
- "types": "dist/index",
12
- "files": [
13
- "dist/*"
14
- ],
15
- "license": "Apache-2.0",
16
- "devDependencies": {
17
- "typescript": "^5.4.5"
18
- }
19
- }