Open xiaoyunwu opened 2 years ago
@xiaoyunwu @HuiCheng @Zeng666666 做了个demo尝试了monaco-editor的组件,支持了sql(也可支持kotlin等)的语法高亮,autocomplete选项是从backend时时拉取的, 后端再对接程辉的LSP服务应该没有障碍。可以看看效果怎么样。 真正接入到我们platform的话需要升级我们的前端的webpack版本,要花一些时间。
@jfang137 这个已经接了 LSP 吗?
@Zeng666666 没有,这个demo主要是给前端选方案,只要前端能正常对接后端就说明没有对接LSP的障碍。真正要platform开始做之后才对接LSP.在这开始前有一堆升级前端webpack5的问题要解决。monaco-editor在webpack4上没法用。
好的,明白了
Is there an existing issue for this?
Summary
Use language service provider to provide auto completion and other feature for code expression.
Motivation
The UI assisted way of specify the kotlin code expression is a limited in the power, but the current code expression is not developer friendly as we missing the help like auto completion that people enjoyed on the IDE. The goal is first provide mechanical auto completion based on lsp, and then gradually we can move to transformer based model for smart code completion, and then to machine translation based solution to generate the code based on natural language description of what builder wants.
Describe alternatives you've considered
This is the standard solution to standard problem, a stop gap.
Additional context
No response