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

Bug 352756

Summary: Content assist computes prefix incorrectly in some cases
Product: [ECD] Orion Reporter: Karol Gusak <karol>
Component: EditorAssignee: Project Inbox <orion.editor-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: john.arthorne
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Karol Gusak CLA 2011-07-21 10:00:10 EDT
A prefix passed to the content assist providers is computed incorrectly in some occasions. I've found out that the prefix is empty when there's only a dollar sign $ before the caret position. In some languages it's being used for variables, so it probably should be treated as a prefix. Probably similar problem occurs with other symbols apply in some languages?
Comment 1 John Arthorne CLA 2011-12-20 13:06:28 EST
This is working as designed. The prefix contains only the alphanumeric characters preceeding the current cursor position. If you want to do anything fancier, the content assist engine has access to the entire editor buffer and selection so you can look at the characters preceeding the prefix if you want.