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

Bug 453337

Summary: [Occurrences] Selecting an expression statement identifier marks all occurrences except the selected one
Product: [ECD] Orion Reporter: Curtis Windatt <curtis.windatt.public>
Component: JS ToolsAssignee: Curtis Windatt <curtis.windatt.public>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 8.0   
Target Milestone: 8.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Curtis Windatt CLA 2014-11-26 12:48:34 EST
var a;
a;

Selecting 'a;' will mark an occurrence on the first line, but not the second.  Either we should be marking the second line or skipping marking occurrences entirely.  Note that if you change the second line to 'a();' the occurrence is marked there.
Comment 1 Curtis Windatt CLA 2014-12-16 14:41:57 EST
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=cc6f3ff60d470b06eb8a885ba63dbd41e65c4206
Fixed in master, we didn't check for ExpressionStatements, which contain an expression which are valid identifiers (hence why selecting one would activate occurrences elsewhere).

Also, > 1500 tests!