-
Notifications
You must be signed in to change notification settings - Fork 14
Monaco Tips
josephjclark edited this page Feb 1, 2024
·
1 revision
Adding libraries to Moanco
monaco.languages.typescript.typescriptDefaults.addExtraLib('const arr = [];')Hiding Editor Lines
https://github.com/microsoft/monaco-editor/issues/45#issuecomment-1159168677
interface IMyStandaloneCodeEditor extends monaco.editor.IStandaloneCodeEditor {
setHiddenAreas(range: monaco.IRange[]): void;
}
...
const casted = editor as IMyStandaloneCodeEditor;
const range = new monaco.Range(1, 0, 1, 0);
casted.setHiddenAreas([range]);