Skip to main content

Questions tagged [monaco-editor]

Monaco Editor is the JavaScript based text editing portion of VSCode extracted out into standalone library.

monaco-editor
1 vote
0 answers
15 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 (...
Takashi Matsuo's user avatar
0 votes
1 answer
22 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....
qg_java_17137's user avatar
0 votes
0 answers
36 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 ...
Jan Kowalski's user avatar
0 votes
0 answers
12 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 ...
Coder --- bunny's user avatar
0 votes
1 answer
39 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 ...
bin's user avatar
  • 1
0 votes
0 answers
38 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 (...
Suppadeliux's user avatar
0 votes
0 answers
14 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/...
Shreya Garg's user avatar
0 votes
1 answer
26 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 ...
scott6's user avatar
  • 754
0 votes
0 answers
31 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 ...
BeratK2's user avatar
  • 63
0 votes
0 answers
32 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 "...
alsanmph's user avatar
0 votes
0 answers
34 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 ...
Altair's user avatar
  • 335
0 votes
0 answers
49 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 ...
Ziad Assem's user avatar
-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 ...
Matt Lacey's user avatar
  • 65.4k
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 ...
Hugo's user avatar
  • 1
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 ...
bluebird's user avatar

15 30 50 per page
1
2 3 4 5
70