Bug 242694 - No code completion on imported JavaScript files
Summary: No code completion on imported JavaScript files
Status: RESOLVED FIXED
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: 3.0.2   Edit
Assignee: Phil Berkland CLA
QA Contact: Phil Berkland CLA
URL:
Whiteboard: JSDT302
Keywords: contributed
: 242692 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-07-31 06:48 EDT by Michael Spector CLA
Modified: 2010-03-03 11:13 EST (History)
0 users

See Also:


Attachments
Reproduction files (560 bytes, application/octet-stream)
2008-07-31 06:48 EDT, Michael Spector CLA
no flags Details
Fix patch (2.17 KB, text/plain)
2008-07-31 11:56 EDT, Michael Spector CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Spector CLA 2008-07-31 06:48:37 EDT
Created attachment 108840 [details]
Reproduction files

1. Unzip the attached folder.
It should contain:

a/b/c/test.js

where test.js is:

function ABC() {
}
ABC.prototype = new Object();

2. Create JavaScript project
3. Import the "a" folder from the file system.
4. Create file test2.js in project root.
5. Try to complete "new A" in test2.js - there's no completion.

How:

1. Go to project preferences->JavaScript libraries->Source tab.
2. Select the project, and press "Remove", then press "OK".
3. Go to project preferences->JavaScript libraries->Source tab.
4. Add folder->select the project->press "OK". Close the dialog by pressing "OK".

Now there's a completion for "ABC" class in test2.js.
Comment 1 Michael Spector CLA 2008-07-31 06:57:37 EDT
*** Bug 242692 has been marked as a duplicate of this bug. ***
Comment 2 Michael Spector CLA 2008-07-31 11:56:52 EDT
Created attachment 108874 [details]
Fix patch

Patch that fixes the problem.
Comment 3 Phil Berkland CLA 2008-08-08 22:09:05 EDT
checked in to branch JSDT302
Comment 4 Phil Berkland CLA 2008-08-22 10:29:08 EDT
Applied the patch.