Sublime Forum

Completion issues with namespaced completions

#1

Hi there,

I’m trying to develop a comprehensive file completion for nodejs.

I’ve noticed a few inconsistances with supporting ‘.’ (dot) in this, with a video to show: screencast.com/t/ckMzoACcU0L

In the start I press ‘fs’ then Ctrl + Space to bring up the completion, and it knows to bring up the correct ‘fs’ namespaced stuff. However, if I hit tab, it always just outputs the first item in the list of completion.

If i type ‘fs.’ and then Ctrl + Space, you can see that rather than the limited namespace list, instead I get the whole completion list for the nodejs completion I created.

Also, because the extension of nodejs code is also .js, my completions seem to completely overide the JavaScript.sublime-completions as such they are no longer available to me, I have to completely remove my completion file from this.

Is there any way around this, other than to define a new language file based on the JavaScript one specifically for nodejs? I’d like to avoid this if I could.

Here is my completion file: github.com/tanepiper/SublimeTex … ompletions

0 Likes