Comments (3)
Sorry, you would need to find Roslyn specific documentation on that.
From the editor point of view, the idea is that you can hook into all the right places (register yourself as a *Provider) and then you get called by the editor when the user wants suggestions, for example. Then, you would need to do an XHR call to your backend where you can have Roslyn running and analyzing the source and which can then reply with relevant suggestions.
I can help you on the editor side, and that basically consists of you registering as a completion item provider for example monaco.languages.registerCompletionItemProvider
. The object you pass in must have the right provider shape and a method called provideCompletionItems
will be called on it. It is up to you how you come up with those completions.
from monaco-editor.
@cwoolumtechnossus We do not ship any intellisense provider for c# with the editor, but if you have a backend where you use maybe Roslyn or something, you can easily hook that into the editor via monaco.languages.registerCompletionItemProvider
.
You can find an example at https://microsoft.github.io/monaco-editor/playground.html#extending-language-services-custom-languages or an async one for hover at https://microsoft.github.io/monaco-editor/playground.html#extending-language-services-hover-provider-example
from monaco-editor.
@alexandrudima Can you please point to an example with Roslyn integration?
It would be very cool to have a C# editor, embedded in a web application, that is aware of custom C# classes that I have available on the back-end.
from monaco-editor.
Related Issues (20)
- [Bug] DiffEditor with glyphMargin: false, still renders glyphMargin when rendered side by side. HOT 1
- [Bug] Monaco does not render markers of the dedicated model after switching to this model. HOT 1
- [Bug] Tab only accept the empty space HOT 3
- how to convert luau.tmLanguage.json to a something setMonarchLanguageProvider will accept
- [Bug] There is always a focus-border around editor when editor background is transparent HOT 1
- [Bug] Support CSS :has() pseudo-class HOT 1
- _foreignProxy from createWebWorker never resolved
- Zonde does not move to the next line if you add a line break on the line before it
- Reopen "Background color does not seems to be working on monaco.editor.defineTheme rules section." HOT 2
- [Bug] "Developer: Inspect Editor Tokens and Scopes" causes error HOT 1
- [Feature Request] Support for package.json conditional exports map, for extra libs typings acquisition HOT 1
- [Bug] d.classList is undefined
- [Bug] typescript type check HOT 1
- [Bug] Wrong cursor position if editor has `transform: scale(0.4);` HOT 1
- [Bug] Update Inlay Hints Provider Example to use `paddingRight` and `paddingLeft`
- [Feature Request] completionItems with insertText having quotes can have extra quotes in the front
- [Bug] paste by ctrl+v not working inside editor after update to 0.46.0 HOT 1
- [Bug] Glyph margin decorations/widgets for deleted lines not rendering in the inline view
- [Bug] createScopedLocalize is undefined HOT 1
- [Bug] Crash / Slowness when JSON Schema is applied
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from monaco-editor.