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 271061

Summary: JSdoc param tag autocomplete
Product: javascript Reporter: Eccenux
Component: EditorAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Other   
Issue Type: DEFECT Exception Reporter:

Description Eccenux 2017-07-07 13:09:56 UTC
The tag `@param` autocomplete is not working as well as it could in JavaScript.

Example function:
/**
 * Some name is a function someone didn't document params for.
 */
function someName(button, text) {
}

Expected params available for automcomplete:
 * @param {type} button
 * @param {type} text

Steps:
1. I type in `@par`. -> At this point I already should have all param names to select from (`button` and `text`). Netbeans has this information as it can add @param tag for newly created function comments.
3. Select `@param` from autocomplete.
4. Remove "type" and start typing "Element". -> Would be nice to have autocomplete here.
5. Press TAB (jumps to name).
6. Use CTRL+space combination. -> I should have param name autocomplete here.

Currently its sometimes faster to remove comment and start over. Some basic DOM types and basic JS types would be great for autocomplete. Netbeans seem to already "know" them, but I add links below just to show what I mean.

Basic JS data types:
https://developer.mozilla.org/pl/docs/Web/JavaScript/Data_structures#Data_types

Basic DOM types (interfaces):
https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model#DOM_interfaces