关于TextEditor的自动补全

在写package时,editor = atom.workspace.getActiveEdtor()
会获取到一个指向TextEditor的变量,如何在编辑器中实现该变量的补全呢?
editor的点操作没有任何提示!
ternJs,autocomplete都不行。。。