Questions tagged [monaco-editor]
Monaco Editor is the JavaScript based text editing portion of VSCode extracted out into standalone library.
monaco-editor
1,036
questions
1
vote
0
answers
31
views
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 (...
0
votes
1
answer
29
views
When I create monaco-editor in my demo, I get error: `Unexpected usage at EditorSimpleWorker.loadForeignModule`
When I create monaco-editor in my demo
https://github.com/liaodalin19903/react-test-02
I get error:
Unexpected usage
at EditorSimpleWorker.loadForeignModule (http://localhost:3000/static/js/bundle....
0
votes
0
answers
42
views
Monaco diff editor - potential listener LEAK detected
I have to opened 100 instances of Monaco diff editor in my Angular project. If I do this, I get an error in the console about a potential leakage of listeners. Need help on how I can get rid of this ...
0
votes
0
answers
18
views
How to Integrate Microsoft's Debug Adapter Protocol (DAP) with the Monaco Editor?
I am currently working on adding a debugger option to my code editor without using an IDE. In my research, I came across Microsoft's Debug Adapter Protocol (DAP), and I've read through the ...
0
votes
1
answer
41
views
vuetify and moncao-editor css conflicts
When I use Vuetify for development, using moncao-editor, style overrides will appear:
import 'vuetify/styles'
If I comment out vuetify styles
//import 'vuetify/styles'
Please tell me how to resolve ...
0
votes
0
answers
44
views
Error Cannot read properties of undefined (reading 'replace') with ngx-monaco-editor-v2 version 16 and Angular 16
I am facing an issue with monaco-editor, specifically since version 16 of ngx-monaco-editor-v2, monaco-editor v0.41, and angular v16.
The error in console is Cannot read properties of undefined (...
0
votes
0
answers
18
views
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.
When I import from monaco-editor-nls/locale/...
0
votes
1
answer
30
views
Set Replace Field programmatically in Find and Replace Action in Web Version of Monaco Editor
I’m working with the web version of the Monaco Editor and I’m trying to implement a find and replace functionality. I can successfully set the field of find text by creating a range selection, but I’m ...
0
votes
0
answers
32
views
Uncaught TypeError: Failed to resolve module specifier "monaco-editor". Relative references must start with either "/", "./", or "../"
I'm getting started using a Monaco Editor for an Electron JS application. So far I'm able to get the file content on a user's directory no problem but when I try to append it to a Monaco Editor is ...
0
votes
0
answers
33
views
Change variable/method color in black apps script theme
I'm using the addon Black Apps Script to create a visual theme in Google Apps Script. My actual code works well for all tokens except variables and methods/functions have the same color (token "...
0
votes
0
answers
36
views
Is it possible to wrap the code that is sent for validation in the monaco editor with something?
I want to let the user write typescript code on my react frontend. I use Monaco-editor/react for this.
However, the user only writes code that is inside some wrapper function, and I don't want to ...
0
votes
0
answers
53
views
ResizeObserver loop completed with undelivered notifications in React
I currently have a project (a code debugger) that has 2 monaco editors side by side. there is a button bar that hides one of the editors and resizes the other one to fill the screen. Initially the ...
-1
votes
1
answer
149
views
Can the Monaco Editor use different line numbering based on the model?
I'm using the Monaco Editor to display some custom file types.
For these files, I need to customize the displayed line numbers based on the models. This is fine for a single model but not when I want ...
0
votes
0
answers
45
views
monaco-kusto how to consider all lines as one query context, even empty lines
I have integrated the monaco editor with the monaco-kusto language plugin inside my web application.
Through the editor, when editing a query, the editor isolates the context from other queries in the ...
1
vote
0
answers
18
views
How to set Monaco Editor value in SharePoint Framework (React)?
I'm very new to React and SPFx.
I was trying to use the Monaco Editor component from @pnp/spfx-controls-react in a SPFx Web Part.
I have the editor, in which the user can write custom css. I also have ...