Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352756 - Content assist computes prefix incorrectly in some cases
Summary: Content assist computes prefix incorrectly in some cases
Status: RESOLVED INVALID
Alias: None
Product: Orion
Classification: ECD
Component: Editor (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-21 10:00 EDT by Karol Gusak CLA
Modified: 2011-12-20 13:06 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.