Home Download Buy Blog Forum Support

Completion issues with namespaced completions

Completion issues with namespaced completions

Postby tanepiper on Fri Nov 25, 2011 3:52 pm

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: http://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: https://github.com/tanepiper/SublimeTex ... ompletions
Posts: 67
Joined: Sun Nov 06, 2011 6:40 am

Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 17 guests