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
3
votes
2 answers

Monaco Editor URI use case?

Hi I'm trying out the Monaco editor and have noticed that some parts of the API ask for an optional URI or path. Examples: monaco.editor.createModel monaco.languages.typescript.languageServiceDefaults.addExtraLib The URI object documentation…
3
votes
1 answer

Override monaco editor hover widget style to hide "peek problem"

I was looking for a configurable way to hide the "Peek Problem" link but couldn't find. Now I'm trying to override the hover tooltip widget css but so far no good.. I couldn't even trace it in devtools, where was it rendered?? I initially thought…
liron_hazan
  • 1,396
  • 2
  • 19
  • 27
3
votes
1 answer

Using markdown in IMarkerData

I am trying to implement diagnostics to my language-service. According to the following question I got that I can't use html to customize my messages but I can use markdown syntax. Can markers support html display just like hoverProvider…
Rami ZK
  • 510
  • 3
  • 13
3
votes
0 answers

combine several languages in one monaco editor

I want to make monaco editor support JSX syntax. As we know, a typical JSX code can be like: hello html { console.log('hello js') } What I want to achieve is that…
yanling
  • 31
  • 1
3
votes
1 answer

How to make an XSS-safe browser-based code editor

I would like to use a browser based code editor such as Monaco or Ace in my application to allow users to write some code in the browser that will be executed by other users. You can imagine jsfiddle or similar. However, I don't want to open up…
Daniel
  • 3,021
  • 5
  • 35
  • 50
2
votes
0 answers

Monaco-editor : Is there a way to prevent cursor/editor's focus from being lost on clicking outside the editor ( on blur )

Monaco-editor :- Is there a way to prevent cursor/editor focus from being lost on clicking outside the editor. My scenario :- I have a list of items in a dropdown that is outside the editor , user can select a dropdown item and I am calling…
Veryon890
  • 330
  • 1
  • 4
  • 15
2
votes
0 answers

Monaco Editor :Change default Glyph Margin hover TOOLTIP styling

I am working on monaco editor and am looking for a way to style the tooltip hover on a glyph margin. To achieve the above image I inspected the element and found the css class (hover-row) which I modified as below to get the above…
Veryon890
  • 330
  • 1
  • 4
  • 15
2
votes
0 answers

monaco editor doesen't show suggestion for printf

Here I have attached screenshot which is showing no suggestions for printf. Please help me to solve the above issue. Thanks in advance.
2
votes
0 answers

How to add diff inline decorators to Monaco similar to VSCode?

I would like to highlight the changes that the user did inside the editor similar to the way VSCode GIT extension highlights the changes inline the editor. I'm aware that there is DiffEditor in Monaco but I don't need to compare the versions side by…
2
votes
2 answers

Monaco editor - integration with JSHint

Is there any way to integrate monaco editor with a jshint linting tool? I know that monaco provides a possibility to set up compiler options, but they are not enough for me. For instance, I would like to require semicolons at the end of the…
2
votes
1 answer

Monaco Editor Dependencies Issue

Whenever I launch Monaco Editor (with node.js), it comes up and seems to behave okay, but I get an error message telling me that there are missing dependencies and to check the list. I can't seem to find the dependency list ( I installed via NPM),…
2
votes
1 answer

Monaco editor: Use native (system) context menu

Is there a way to get Monaco to use a system menu for the context menu? I have embedded Monaco in a WKWebView on macOS. The contextual (right-click) menu is rendered inside the web view, not as a native system menu. (But VSCode does show a native…
2
votes
1 answer

Variable transforms in snippets using tabstop number

I'm wondering if it's possible to use the tabstop integers as variables for transforms. In sublime transforms allow for the following behavior: This is a ${1:simple} snippet This snippet is ${1/complex/not/} for beginners Expected behavior would…
M. Oranje
  • 781
  • 5
  • 13
2
votes
1 answer

How to add clickable link on completion items documentation

Is there an api where I can specify to use markup to display links in the documentation tooltip? The only place where I can find it supports markup are in the hover. For example: monaco.languages.register({ id: 'mySpecialLanguage'…
123 456 789 0
  • 10,565
  • 4
  • 43
  • 72
2
votes
1 answer

Does the monaco editor support the use of Typescript language service plugins?

I'd like to create a Typescript language service plugin (e.g. https://github.com/Microsoft/TypeScript/wiki/Writing-a-Language-Service-Plugin) and integrate this plugin with the Monaco editor, running in a browser. Is it possible to integrate…