Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369342 - [content-assist] No method proposals if function has fields
Summary: [content-assist] No method proposals if function has fields
Status: RESOLVED WORKSFORME
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.3   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 3.5.1   Edit
Assignee: Project Inbox CLA
QA Contact: Chris Jaun CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-22 15:08 EST by Jacek Pospychala CLA
Modified: 2013-08-30 16:58 EDT (History)
1 user (show)

See Also:


Attachments
patch (1.10 KB, patch)
2012-02-01 03:56 EST, Jacek Pospychala CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jacek Pospychala CLA 2012-01-22 15:08:20 EST
If a function has properties, it doesn't show in C-A proposals list. For example:

function $(selector) {
  // ...
  return jQueryObject;
}

$.trim = function(txt) {
  // ...
  return trimmedTxt;
}

Using content assist after "$" will generate a list with single type proposal "$", but not with function proposal.

I'd expect:

$|
- proposal "$(selector)"

$.|
- proposal "$.trim(txt)"
Comment 1 Jacek Pospychala CLA 2012-01-27 05:02:42 EST
hm I was too hurry.. it seems a simpler case doesn't work either, e.g.:

Date.p| <-- use content-assist here to get "parse()" method

No proposals found..
Comment 2 Jacek Pospychala CLA 2012-02-01 03:56:17 EST
Created attachment 210357 [details]
patch

I was able to fix my original issue by reverting some change related to bug 351448
Comment 3 Chris Jaun CLA 2013-08-30 16:58:35 EDT
This is working in WTP 3.5.1.