Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 465724

Summary: [assist] Proposals with unknown style cause assist to fail
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: EditorAssignee: Curtis Windatt <curtis.windatt.public>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: curtis.windatt.public
Version: 6.0   
Target Milestone: 9.0   
Hardware: All   
OS: All   
Whiteboard:

Description Michael Rennie CLA 2015-04-28 14:11:50 EDT
While working on bug 465322 I found that if you pass a proposal with an unknown style content assist silently fails.

The problem is in the following code in contentAssist.js (~line 610):

if (filteredArrayStyle && (0 === STYLES[filteredArrayStyle].indexOf(STYLES.noemphasis))) {
  // the style of the first element starts with noemphasis
  // add these proposals to the end of the array
  first = prev;
  last = filteredArray;
}

if filteredArrayStyle is not in the style array the code throws and silently catches an exception, resulting in no proposal popup being shown.