Questions tagged [monaco-editor]

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

The Monaco Editor is the JavaScript based text editing portion of VSCode extracted out into standalone library. It provides an extensive plugin architecture as well as an extensible intellisense like system.

622 questions
0
votes
1 answer

Is there multiple contributor integration in Monaco Editor built in?

I'm working on a project that allows two people to work on the same code from different computers. I would like to use Monaco because it's so bare bones. I imagine I can use something like socket.io to integrate this functionality. I was curious if…
0
votes
1 answer

Javascript Electron / Monaco Editor Load file without dialog

I am working on an electron project which uses Monaco Editor. To load a file I use this code: dialog.showOpenDialog({}, (files) => { if(files && files.length > 0) { fs.readFile(files[0], 'utf8', (err, res) => { if (!err) { …
user7776690
0
votes
1 answer

Monaco Editor: Creating TypeScript-Declarations automatically

i am using the Monaco Editor and i wonder, if it is possible, to create typescript declarations (*.d.ts) out of typescript-codes. Something like this pseudocode: var myTsCode = "function greeter(person: string): string { return 'Hello, ' + person;…
Peter
  • 3
  • 3
0
votes
1 answer

How to load scripts via ajax when monaco editor is used

When I use monaco editor in a web app, the loader causes previously defined ajax script loads to no longer load. See example here
0
votes
1 answer

TypeScript vs JavaScript Language Service

The Monaco editor has both a JavaScript and a TypeScript language service, however based on the research and playing I have done they both use the basically the same worker and do virtually the same thing. What differences exactly does these two…
Nathanael
  • 5,251
  • 16
  • 23
0
votes
1 answer

Monaco standalone editor throws not a function error when implementing onkeydown event

I might be implementing this incorrectly but this is the code I'm using that throws the error. This is written in TypeScript. Any help on instantiating the event handler would be greatly appreciated. var htmlEditor =…
D.W.Wolfe
  • 1
  • 1
0
votes
1 answer

IstandaloneCodeEditor.addOverlayWidget()

I have to add an overlay widget on Monaco editor at a particular position.From Docs, I came to know that there is a method in IStandaloneCodeEditor call addOverlayWidget to do this.But I don't know how to pass position as a parameter to this…
vairav
  • 384
  • 1
  • 10
0
votes
1 answer

Structural auto-completion of types

We are working on integrating Monaco with our web based RAD product built using React. It has a UI to create State (a simple JSON structure) and Event handler editor where the user can write functions to handle component events like onClick etc. We…
hazardous
  • 9,322
  • 2
  • 34
  • 49
0
votes
2 answers

Disable auto-closing of brackets in Monaco editor

How can I disable auto closing of specific brackets? I have a java mode active and Monaco is auto closing '<' to '<>'
tomitrescak
  • 903
  • 10
  • 21
0
votes
1 answer

getAllDecorations is not a function

I have managed to create line and in-line decorations and apply them to the editor, this is the code I am using to create the decorations: editor.deltaDecorations([], myDecorations); Now I am looking for a way to remove the decorations. I tried the…
Ronny vdb
  • 1,846
  • 4
  • 26
  • 63
0
votes
1 answer

Using React with uncontrolled third-party components

I'd like to create a UI similar to JSFiddle using React: A panel for HTML, CSS and JS A preview panel A single "Run" button that updates the preview I'd like to use Microsoft's Monaco editor for the HTML, CSS and JS panels to get syntax highlight…
danvk
  • 13,227
  • 3
  • 51
  • 86
0
votes
1 answer

Reset Monaco Editor state

I've implemented the Monaco Editor (https://github.com/Microsoft/monaco-editor) as a way for the user to insert some JSON. I enable the editor once the user clicks a "post" button. The problem is, the editor is enabled inside a switch function. So…
Daniel
  • 325
  • 2
  • 14
0
votes
4 answers

Monaco editor in Electron with AngularJS

I want to get the monaco editor up and running in Electron. I found the electron examples for monaco but they won't work in my app. All I get are errors like: "loader.js:1817 Uncaught Error: Unrecognized require call" "angular.js:13920 Error:…
FDeitelhoff
  • 638
  • 6
  • 18
-1
votes
0 answers

Why does monaco editor stop chart.js from working?

So I have a page which uses monaco editor and chart.js, however if I go to the page which has the chart in it it works fine, then if I got to the page with the monaco editor it works fine, then if I go back to the chart it doesn't render, the canvas…
-1
votes
1 answer

How to programmatically trigger "View Problem (Alt + F8)" command?

There doesn't seem to be an easy way to trigger the Alt+F8 command, am I missing something here? Similarly, is there a way to trigger the above Problem hover window?
1 2 3
41
42