Questions tagged [visual-studio-monaco]

Visual Studio Online “Monaco” is a coding environment for the cloud, in the cloud. It complements the desktop IDE as a low friction experience that will help you get started, or make quick changes, to an existing cloud service.

Visual Studio Online “Monaco” is a coding environment for the cloud, in the cloud. It complements the desktop IDE as a low friction experience that will help you get started, or make quick changes, to an existing cloud service. And it is integrated with Visual Studio Online.

“Monaco” is already being used as the technology behind other cloud-based developer experience, from Office 365 “Napa” development to SkyDrive file editing.

More info on MSDN blogs.

76 questions
2
votes
0 answers

Visual studio online 'monaco' and bitbucket. Creating new branches?

I create a branch on visual studio online 'monaco' and my repository was cloned from bitbucket. When I create a new branch in monaco and push to bitbucket, I can push and update all my master branch changes but my 'newBranch' does not get synced.…
jtrdev
  • 915
  • 1
  • 9
  • 25
1
vote
1 answer

how can we get which completion item is selected by the user

I am using provideCompletionItems and giving it suggestion list i want to know how i can add a callback when user select a particular item. this is how my suggestion look like { label: 'apple', insertText:'apple', kind:…
1
vote
0 answers

Monaco Editor is not showing the colors, only white color is showing

I implemented monaco editor in my react application, but It's just showing one color, I am unable to figure it out. I have also tried using the by default theme as well, without custom theme, still Its the same…
Muhammad Owais
  • 980
  • 3
  • 17
  • 37
1
vote
1 answer

How to use two different fonts on a page with the monaco editor?

I am using react-monaco-editor. In the global css I set a font family, for example Helvetica, Tahoma, Arial, monospace. At the same time I have an editor instance on my page that I want to use another font, like "Fira Code", monospace. I set it in…
1
vote
0 answers

install packages and get autocompletion on Monaco editor react

I want to give my users the ability to install npm packages in the browser and get autocompletion on the Monaco editor for the installed packages, I have searched a lot, and this is what I came up with for now: const { data: cryptoTypeDefs } = await…
1
vote
1 answer

monaco editor theme can not be changed dynamically

I want to update monaco editor theme on the fly, but I found it does not work: this.editorOptions = { ...this.editorOptions, readOnly: true, // this.readOnly, value: this.code, …
user3006967
  • 3,291
  • 10
  • 47
  • 72
1
vote
1 answer

Monaco editor custom token provider behaviour

I am attempting to implement a tokenizer with quite specific behaviour, where for example, in the following situation: 1: Line 1 2: Line 2 3: 4: Line 4 5: Line 5 6: Line 6 7: 8: 9: Line 9 A change on line 1, will cause a retokenization…
1
vote
1 answer

Not able to do Undo in monaco editor

In my angular 7 project I'm using monaco editor for the coding. If I do some change in the code and then press ctrl+z then it will undo the code, but when I do some change then I am changing the coding language after that if I press ctrl+z then it…
1
vote
2 answers

Doesn't Monaco Editor support XML language by default?

I am trying to use Monaco Editor for XML language, but XML string is not getting formatted while the editor instance is being rendered, whereas its working fine for JSON. I also don't find "Format Document" option in Context Menu of Editor(if it is…
Rama Rao M
  • 2,961
  • 11
  • 44
  • 64
1
vote
1 answer

Disable Paste in Monaco Editor

I was trying to implement the Monaco editor on a web project using parcel as a bundler, but find it quite difficult to prevent a paste action (I do not want the users to paste codes in the editor). This was how I initialised the editor import * as…
1
vote
0 answers

Monaco editor error: Script error for "jquery", needed by: vs/editor/editor.main

I'm using require.js Code to create editor require.config({ paths: { 'vs': '/monaco-editor/min/vs' }}); require(['vs/editor/editor.main'],…
1
vote
0 answers

Change in node_modules doesn't take effect

I have a JS project which installs many modules under node_modules directory. The project is configured to be bundled using webpack. When I make changes to index.js at the root of the project, and then issue "webpack" command, I see the changes.…
1
vote
1 answer

executeEdits resets my edit operation range

I'm attempting to do some basic playback of events in Monaco Editor, however, whenever I pass an edit to executeEdits, it always resets the range of my edit to { startLineNumber: 1, startColumn: 1, endLineNumber: 1, endColumn: 1 } (this is what I…
Sparky
  • 152
  • 1
  • 7
1
vote
1 answer

Azure App Service Editor (Monaco) stoped working / no access http error 500.1001

i cant access anymore to azure App Service Editor (monaco) , every thing was ok , and than just stopped. The web site is working, and i can access using visual studio but not online
1
vote
2 answers

How to programmatically trigger keyboard events in Monaco Editor

In writing a generative test suite for code editors, I'm trying to programmatically call the event handlers that handle KeyboardEvent's in Monaco. Making a new KeyboardEvent({...}) and dispatching it on the textarea, or root editor element didn't…