lean4monaco 1.0.25 → 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/editor.d.ts +0 -1
- package/dist/editor.js +0 -1
- package/dist/fonts/LeanWeb/LeanWeb-Regular.otf +0 -0
- package/dist/leanmonaco.d.ts +1 -0
- package/dist/leanmonaco.js +13 -3
- 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/editor.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ITextFileEditorModel } from 'vscode/monaco';
|
|
2
2
|
import * as monaco from 'monaco-editor';
|
|
3
3
|
import { IReference } from '@codingame/monaco-vscode-editor-service-override';
|
|
4
|
-
import './editor.css';
|
|
5
4
|
export declare class LeanMonacoEditor {
|
|
6
5
|
editor: monaco.editor.IStandaloneCodeEditor;
|
|
7
6
|
modelRef: IReference<ITextFileEditorModel>;
|
package/dist/editor.js
CHANGED
|
Binary file
|
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: {
|
|
@@ -109,7 +116,10 @@ export class LeanMonaco {
|
|
|
109
116
|
// Load fonts
|
|
110
117
|
const fontFiles = [
|
|
111
118
|
new FontFace("JuliaMono", `url(${new URL("./fonts/JuliaMono-Regular.ttf", import.meta.url)})`),
|
|
112
|
-
new FontFace(
|
|
119
|
+
// new FontFace(
|
|
120
|
+
// "LeanWeb",
|
|
121
|
+
// `url(${new URL("./fonts/LeanWeb-Regular.otf", import.meta.url)})`,
|
|
122
|
+
// )
|
|
113
123
|
];
|
|
114
124
|
fontFiles.map(font => {
|
|
115
125
|
document.fonts.add(font);
|
|
@@ -135,7 +145,7 @@ export class LeanMonaco {
|
|
|
135
145
|
"editor.acceptSuggestionOnEnter": "off", // since there are plenty suggestions
|
|
136
146
|
// other options
|
|
137
147
|
"editor.renderWhitespace": "trailing",
|
|
138
|
-
"editor.fontFamily": "'
|
|
148
|
+
"editor.fontFamily": "'JuliaMono'",
|
|
139
149
|
"editor.wordWrap": "on",
|
|
140
150
|
"editor.wrappingStrategy": "advanced",
|
|
141
151
|
"workbench.colorTheme": "Visual Studio Light",
|
package/package.json
CHANGED