我正在为 monaco-editor 创建 PromQL 语言支持,我发现语言定义位于此存储库中:https://github.com/microsoft/monaco-languages https://github.com/microsoft/monaco-languages
但我无法找到这些语言的自动完成定义位于何处。
我已经知道如何添加一些自定义完成。
我现在想知道的是内置完成位于哪里?
Edit:
我发现某些语言有一些特定的存储库,其中包含一些完成项,例如:
- 打字稿https://github.com/microsoft/monaco-typescript https://github.com/microsoft/monaco-typescript
- css https://github.com/microsoft/monaco-css https://github.com/microsoft/monaco-css
- ...
那么其他语言呢,比如 Java、Python……?
直接向 monaco-editor 存储库询问问题。
主要回答:
我相信 Monaco 仅支持 JavaScript/TypeScript,
默认情况下有 CSS、JSON 和 HTML,这就是为什么这些 monaco-abc
存储库存在。其他语言没有代码补全
默认情况下如 Java 和 Python。
所以我创建了一个单独的存储库https://github.com/celian-garcia/monaco-languages-promql https://github.com/celian-garcia/monaco-languages-promql包括足够的文档,可以用最少的代码轻松集成。
更多详细信息请参见此处:https://github.com/microsoft/monaco-editor/issues/1672 https://github.com/microsoft/monaco-editor/issues/1672
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)