Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315277 - [performance] JavaScript content assist times out after adding IE libraries
Summary: [performance] JavaScript content assist times out after adding IE libraries
Status: RESOLVED FIXED
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.0.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0.5 P   Edit
Assignee: Chris Jaun CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 315278
  Show dependency tree
 
Reported: 2010-06-01 15:11 EDT by Chris Jaun CLA
Modified: 2010-06-04 09:11 EDT (History)
1 user (show)

See Also:
thatnitind: review+


Attachments
patch (1.45 KB, patch)
2010-06-01 15:12 EDT, Chris Jaun CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Jaun CLA 2010-06-01 15:11:09 EDT
After adding the Internet Explorer library as a JavaScript runtime library, the JavaScript content assist will time out.

STEPS TO REPRODUCE
===============
o Create new project (Web Dynamic Project, Static Web Project, etc).
o Add/create test.js file.
o Open up test.js, and type document.g . On selection popup, select getElementById(elementId).
o Works great! No problem.
o Now, select your project. Right click then properties. Then, JavaScript>JavaScript Libraries.
o Select Libraries tab. Then click on Add Runtime Library.... Pick Internet Explorer Library.
o Now on your test.js, type document.g . On selection popup, select getElementById(elementId).. Your workspace should hang for at least 30 seconds. Then you get message box "Problems during content assist"
Comment 1 Chris Jaun CLA 2010-06-01 15:12:34 EDT
Created attachment 170681 [details]
patch

Patch limits search scope when the token is "" to the current compUnit and its super types.
Comment 2 Nitin Dahyabhai CLA 2010-06-01 23:16:53 EDT
Looks good.
Comment 3 Carl Anderson CLA 2010-06-04 09:11:41 EDT
Committed to R3_0_5_patches