How do I access the globalThis.ts object in monaco?
In the GitHub sources, I can see that globalThis.ts
points to typescript as used by monaco. My first thought was that it would be available on window
, but monaco uses a webworker, so has a different context to my code.
How to write a custom language worker with Typescript
We want to develop a custom Web Worker for our custom language with typescript. We already wrote a working Web Worker, but since the worker code imports monaco stuff from js files under esm
directory (e.g. monaco-editor/esm/vs/editor/common/languages
), we lose the typing information. We attempted to import from monaco-editor/esm/vs/editor/editor.api.js
, but then the worker couldn’t start (error message pasted below).
monaco-editor-nls is not working with monaco editor
I am using monaco-editor version 0.50.0 and monaco-editor-nls version 3.1.0 in angular project.
I want to give multiple language support to monaco-editor.
Why does space change when using custom font in Monaco editor on web?
We are attempting to create a browser-based IDE from scratch, using the Monaco editor. To make this project more unique, we are using a custom font in the editor for code. When the user tries to select text in the editor, it gets squished together. Why does this happen, and is there any way to make it stop?
How to close minimap in monaco diff editor
I dont want the right minimap, and my code is
Monaco editor embed in react app shows lines off compared to code
Im trying to embed Monaco editor into my react code.