lean4monaco 1.0.31 → 1.0.33

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
@@ -202,14 +202,14 @@ You can run
202
202
 
203
203
  ```
204
204
  npm install
205
- npm run test
205
+ npm test
206
206
  ```
207
207
 
208
208
  for the automated cypress tests.
209
209
 
210
210
  ### Docker image
211
211
 
212
- The Dockerfile defines an image where the server is run in a Linux container.
212
+ There is a `Dockerfile` which defines an image where the server is run in a Linux container.
213
213
  You can look at the github workflow to see how it is used; in particular the image can
214
214
  be built with
215
215
 
@@ -48,5 +48,10 @@ export declare class LeanMonaco {
48
48
  /** This basically returns the `package.json` of `vscode-lean4` with some ts-fixes and the custom themes. */
49
49
  protected getExtensionManifest(): IExtensionManifest;
50
50
  protected getWebSocketOptions(options: LeanMonacoOptions): WebSocketConfigOptionsUrl;
51
+ /** Restarting all clients.
52
+ * Note: I think with the current implementation, there is always just one client
53
+ * (is that true?), but the vscode-extension is designed for more.
54
+ */
55
+ restart(): void;
51
56
  dispose(): void;
52
57
  }
@@ -121,6 +121,7 @@ export class LeanMonaco {
121
121
  // Load fonts
122
122
  const fontFiles = [
123
123
  new FontFace("JuliaMono", `url(${new URL("./fonts/JuliaMono-Regular.ttf", import.meta.url)})`),
124
+ new FontFace("Noto Color Emoji", `url(${new URL("./fonts/NotoColorEmoji-Regular.ttf", import.meta.url)})`),
124
125
  // new FontFace(
125
126
  // "LeanWeb",
126
127
  // `url(${new URL("./fonts/LeanWeb-Regular.otf", import.meta.url)})`,
@@ -150,7 +151,7 @@ export class LeanMonaco {
150
151
  "editor.acceptSuggestionOnEnter": "off", // since there are plenty suggestions
151
152
  // other options
152
153
  "editor.renderWhitespace": "trailing",
153
- "editor.fontFamily": "'JuliaMono'",
154
+ "editor.fontFamily": "'JuliaMono', 'Noto Color Emoji'",
154
155
  "editor.wordWrap": "on",
155
156
  "editor.wrappingStrategy": "advanced",
156
157
  "workbench.colorTheme": "Visual Studio Light",
@@ -228,6 +229,13 @@ export class LeanMonaco {
228
229
  ...options.websocket
229
230
  };
230
231
  }
232
+ /** Restarting all clients.
233
+ * Note: I think with the current implementation, there is always just one client
234
+ * (is that true?), but the vscode-extension is designed for more.
235
+ */
236
+ restart() {
237
+ this.clientProvider?.getClients().map(client => { client.restart(); });
238
+ }
231
239
  dispose() {
232
240
  if (LeanMonaco.activeInstance == this) {
233
241
  LeanMonaco.activeInstance = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lean4monaco",
3
- "version": "1.0.31",
3
+ "version": "1.0.33",
4
4
  "description": "Monaco Editor support for the Lean 4 theorem prover.",
5
5
  "keywords": [
6
6
  "lean",