You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**code**|`string` <br /><br /> The current code in the Monaco editor. This value updates on change to the Monaco editor with optional debouncing. Alias for `sandbox.getText()`|
88
-
|**setCode**| `(code: string, options: {format: "prettier" | "monaco"}) => void` <br /><br /> Set the code in the Monaco editor with optional formatting with Prettier or Monaco. Alias for `sandbox.setText()` |
88
+
|**setCode**|`(code: string, options: {format: "prettier" \| "monaco"}) => void` <br /><br /> Set the code in the Monaco editor with optional formatting with Prettier or Monaco. Alias for `sandbox.setText()`|
89
89
|**formatCode**|`() => void` <br /><br /> Format the code in the Monaco editor. Alias for `sandbox.editor.getAction("editor.action.formatDocument").run()`|
90
90
| **prettier** | `prettier(config?: Options) => string` <br /><br /> Format the code in the Monaco editor with Prettier. Accepts a Prettier config object.
91
91
|**markers**|`(IMarker & {key: string})[]` <br /><br /> Alias for `sandbox.monaco.editor.getModelMarkers({})` with added unique `key` property. Kept in sync via `sandbox.editor.onDidChangeModelDecorations`. |
0 commit comments