csharp-language-server-protocol icon indicating copy to clipboard operation
csharp-language-server-protocol copied to clipboard

Simple Sample for usage with Monaco Editor over Websockets

Open jogibear9988 opened this issue 4 years ago • 10 comments

Is there a Simple sample how to use Omnisharp with Monaco Code Editor in a Web Application.

For mee it's not clear wich Nugets I had to use, wich Handlers I need to implement.

I'd like to get simple C# Code Completition in a Web Application.

jogibear9988 avatar Jan 21 '21 23:01 jogibear9988

Also curious about this!

David-Moreira avatar May 02 '21 11:05 David-Moreira

Hey @jogibear9988, did you find a way to implement it?

janivo avatar May 14 '21 14:05 janivo

No, not yet. But I also don't had time to work on this. I think if noone helps here I will come back to this later this year

jogibear9988 avatar May 14 '21 15:05 jogibear9988

And if I will get it working, I will also create a sample

jogibear9988 avatar May 14 '21 15:05 jogibear9988

Any of use get any progress with this @jogibear9988 @janivo @David-Moreira? I have the same need.

tritrancs avatar Nov 04 '21 19:11 tritrancs

nope, not really. we now started to use roslyn directly, but we do not have all of the features. but at least this works for us atm. I will look if we could share the solution. Maybe we could move this to an opensource github library, so it could grow if others contribute something.

jogibear9988 avatar Nov 04 '21 20:11 jogibear9988

we have created a repo with the code we use atm. this still need's a lot of work . for example, hover informations is only less usefull... we will also create a nuget, once net6 is released.

see here: https://github.com/dotnetprojects/MonacoRoslynCompletionProvider

jogibear9988 avatar Nov 06 '21 10:11 jogibear9988

also we only handle "." at the moment. we still need to handle brackets, show method definitions, ... so if anyone would help.

jogibear9988 avatar Nov 06 '21 10:11 jogibear9988