简体   繁体   English

网页上是否有带有 omnisharp 的摩纳哥编辑器的示例项目

[英]Is there an example project for monaco-editor with omnisharp on a webpage

In my project, I use C# Roslyn scripts for some automation that can my customer write alone.在我的项目中,我使用 C# Roslyn 脚本进行一些我的客户可以单独编写的自动化。 I compile and run this on runtime.我在运行时编译并运行它。

Now I would like to have a web editor for c# with intellisense and spell check.现在,我想要一个 web 编辑器,用于 c#,具有智能感知和拼写检查功能。 For code completion, I would like also to get some private nugget packets with my API to provide to the script.对于代码完成,我还想用我的 API 获取一些私有数据包以提供给脚本。

Actually, I do that with Visual Studio Code.实际上,我使用 Visual Studio Code 来做到这一点。 But it would be nice to have the same behavior on a self-hosted web page.但是在自托管 web 页面上有相同的行为会很好。

I have found the Monaco-editor and omnisharp project.我找到了 Monaco-editor 和 omnisharp 项目。 I think this is good because Visual Studio Code uses it also.我认为这很好,因为 Visual Studio Code 也使用它。

Does anyone know a sample project or open source project that bring these things together?有谁知道将这些东西组合在一起的示例项目或开源项目? I am sure I am not the first with this idea.我相信我不是第一个有这个想法的人。

Not sure if I got your needs correctly but here is a young open-source project to bring c# code completion to Monaco https://github.com/do.netprojects/MonacoRoslynCompletionProvider不确定我是否正确地满足了您的需求,但这是一个将 c# 代码补全带到摩纳哥的年轻开源项目https://github.com/do.netprojects/MonacoRoslynCompletionProvider

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM