简体   繁体   English

在Monaco编辑器中集成VS Code扩展

[英]Integrate VS Code extensions in the Monaco editor

The FAQ section of the Monaco repository says that it is not possible to execute VS Code extensions on the Monaco Editor in browser. 摩纳哥存储库的常见问题解答部分说,无法在浏览器的摩纳哥编辑器上执行VS Code扩展。 If I understand correctly, the extensions have server dependencies. 如果我理解正确,则扩展具有服务器依赖性。 Thus, it should be possible to integrate an extension in the Monaco editor with a server (ex. npm run simpleserver). 因此,应该有可能在Monaco编辑器中将扩展与服务器集成(例如npm run simpleserver)。

As example, I would like the integrate the Better Merge extension in the Monaco editor. 例如,我希望在摩纳哥编辑器中集成“ 更好的合并”扩展。 Is that possible? 那可能吗? How may I do it? 我该怎么办?

The vscode extensions are built on top of the vscode API. vscode扩展是建立在vscode API之上的。 The vscode API is built on top of the monaco editor API plus many other things. vscode API建立在monaco编辑器API以及许多其他东西之上。 One would need to build things on the monaco editor API or implement the vscode API from scratch on top of the monaco editor API. 人们将需要在monaco编辑器API上构建东西,或者在monaco编辑器API之上从头开始实现vscode API。

source : github 来源: github

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

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