This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 259167 - No code templates inside code completion
Summary: No code templates inside code completion
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Other
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-09 09:43 UTC by Christian Lenz
Modified: 2016-05-09 17:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Lenz 2016-05-09 09:43:53 UTC
I created a new code template called "task" and this is the code:

gulp.task(${name}, function() {
    
});

when I type "task" inside a js file (For me it is inside a gulpfile.js) then I couldn't see the code template "task". I can hit tab and of course it works.

I thought it is not working for code templates, which I created by my self but I tried "al" for window.alert and there is no code completion for al too. So I think the code completion for code templates for javascript is broken/missing. 

When I type "al" and hit tab, the code template works. When I type "al" and wait for the code completion and hit tab, it will complete alert, because it was the first suggestion.


Regards

Chris
Comment 1 Petr Pisl 2016-05-09 13:42:52 UTC
Thanks for catching this. I have add the implementation for javascript templates and javascript doc templates. http://hg.netbeans.org/web-main/rev/12efdfd69406 . 

The implementation is on ecma6-truffel branch. Will be merged into the trunk with ecma6 support.
Comment 2 Christian Lenz 2016-05-09 13:51:00 UTC
Ok cool, and for HTML I have to create a new ticket right?
Comment 3 Christian Lenz 2016-05-09 13:51:48 UTC
And for typescript, I have to create a ticket for the 3rd party nbts plugin, right?
Comment 4 Petr Pisl 2016-05-09 14:25:49 UTC
Yes please, it would be better to treat them as different issues. Put me on cc or add the link to the my change. It's not hard to implement this.
Comment 5 Christian Lenz 2016-05-09 17:10:08 UTC
Thx. :)