Ace编辑器添加自定义JS API

时间:2018-10-21 10:03:18

标签: javascript ace-editor

是否可以将自定义JS API添加到ace自动完成功能中?

假设我有以下对象:

const myApi = {
  methodOne() {}
  methodTwo() {}
}

当用户键入myApi.时,我需要显示methodOnemethodTwo作为建议。

我尝试使用完成API,但没有找到实现此目的的方法。

0 个答案:

没有答案
相关问题