lean4monaco 1.0.26 → 1.0.27

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 CHANGED
@@ -152,7 +152,12 @@ with 1 (or more) monaco editors and an infoview, showing the Lean infos at the c
152
152
  Some random errors we encountered. If you have more, please share them.
153
153
 
154
154
  * Make sure that only one version of the npm package `monaco-vscode-api` is installed. The error I typically got is:
155
-
155
+
156
156
  ```
157
157
  this._configurationService.onDidChangeConfiguration is not a function
158
158
  ```
159
+
160
+ ### Warnings on `npm install`
161
+
162
+ * Warnings about `glob` and `inflight` come from `copyfiles`: see [copyfiles#132](https://github.com/calvinmetcalf/copyfiles/pull/132)
163
+ * Warning about ` @types/cypress` comes from `cypress-iframe`
@@ -20,6 +20,7 @@ export type LeanMonacoOptions = {
20
20
  websocket: {
21
21
  url: string;
22
22
  };
23
+ htmlElement?: HTMLElement;
23
24
  vscode?: {
24
25
  [id: string]: any;
25
26
  };
@@ -32,6 +32,13 @@ export class LeanMonaco {
32
32
  infoviewEl;
33
33
  disposed = false;
34
34
  async start(options) {
35
+ if (!options.htmlElement) {
36
+ console.debug('[LeanMonaco]: not starting because container is null');
37
+ return;
38
+ }
39
+ else {
40
+ console.debug('[LeanMonaco]: starting');
41
+ }
35
42
  if (LeanMonaco.activeInstance == this) {
36
43
  console.warn('A LeanMonaco instance cannot be started twice.');
37
44
  return;
@@ -61,7 +68,7 @@ export class LeanMonaco {
61
68
  ...getConfigurationServiceOverride(),
62
69
  ...getLanguagesServiceOverride(),
63
70
  ...getModelServiceOverride()
64
- }, undefined, {
71
+ }, options.htmlElement, {
65
72
  workspaceProvider: {
66
73
  trusted: true,
67
74
  workspace: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lean4monaco",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "Monaco Editor support for the Lean 4 theorem prover.",
5
5
  "keywords": [
6
6
  "lean",
package/dist/editor.css DELETED
@@ -1,9 +0,0 @@
1
- @font-face {
2
- font-family: "JuliaMono";
3
- src: local(".fonts/JuliaMono-Regular.ttf"),
4
- }
5
-
6
- @font-face {
7
- font-family: "LeanWeb";
8
- src: local(".fonts/LeanWeb-Regular.otf"),
9
- }