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 +6 -1
- package/dist/leanmonaco.d.ts +1 -0
- package/dist/leanmonaco.js +8 -1
- package/package.json +1 -1
- package/dist/editor.css +0 -9
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`
|
package/dist/leanmonaco.d.ts
CHANGED
package/dist/leanmonaco.js
CHANGED
|
@@ -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
|
-
},
|
|
71
|
+
}, options.htmlElement, {
|
|
65
72
|
workspaceProvider: {
|
|
66
73
|
trusted: true,
|
|
67
74
|
workspace: {
|
package/package.json
CHANGED