王牌编辑器。在自动完成中添加解释选项卡

Ace Editor. Adding explanation tab in autocomplete

我在自动完成中有自己的自定义功能,我想在自动完成旁边添加一个选项卡,以显示每次用户选择该功能时该功能的作用。

VScode 中的类似内容:

我在这个 link 中找到了一个类似的例子,但是在一个片段中。

如何在 ace 中实现这一点? 提前谢谢你。

您可以添加 getDoc Tooltip 方法来完成类似于 https://github.com/ajaxorg/ace/blob/7285dad33867771a688a96bbf2309f4e995a5b7d/lib/ace/ext/language_tools.js#L82 or add docHTML property to the items https://github.com/ajaxorg/ace/blob/master/lib/ace/autocomplete.js#L362