Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331408 - [editor] JSDoc hover on a function does not show types for parameters on the first line
Summary: [editor] JSDoc hover on a function does not show types for parameters on the ...
Status: VERIFIED WORKSFORME
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.2.1   Edit
Hardware: PC Windows 7
: P3 minor (vote)
Target Milestone: Future   Edit
Assignee: Project Inbox CLA
QA Contact: Chris Jaun CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-30 04:44 EST by Mauro Molinari CLA
Modified: 2013-07-11 02:43 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mauro Molinari CLA 2010-11-30 04:44:18 EST
Build Identifier: M20100909-0800

If you write a function and specify its parameter types in a JSDoc, if you look at the JSDoc hover you'll see that the parameters are always reported as "any" in the first line

Reproducible: Always

Steps to Reproduce:
1. create a static web project with JavaScript support
2. create test.js with the following content:

/**
 * @param {String} myParam
 * @returns {Boolean}
 */
function test(myParam) {
	return true;
}

3. look at the JSDoc hover (press F2 on "test"); this is what I see:

Boolean [test.js] test(any myParam)

Parameters:
  {String} myParam
@returns
  {Boolean}

What I would expect:

Boolean [test.js] test(String myParam)

Parameters:
  {String} myParam
@returns
  {Boolean}
Comment 1 Chris Jaun CLA 2013-07-10 11:18:46 EDT
This is working correctly now in WTP 3.5.
Comment 2 Mauro Molinari CLA 2013-07-11 02:41:22 EDT
I confirm it works with WTP 3.5.