Community
Participate
Working Groups
Subwords cannot properly highlight proposals that have a prefix like {@link ...}, {@value ...}. We need some kind of offset in the processable proposal API to fix that. See bug 465898 for examples and more details.
(In reply to Marcel Bruch from comment #0) > Subwords cannot properly highlight proposals that have a prefix like {@link > ...}, {@value ...}. We need some kind of offset in the processable proposal > API to fix that. Some thoughts on this that came up while fixing Bug 465898: - Javadoc tag proposals are just ordinary JavaCompletionProposal, but they do have a special kind (JAVADOC_INLINE_TAG, etc.), so we can distinguish them. - When completing with a prefix of "{@" you get the proposal "{@link}" (already highlighted correctly). - When completing with a prefix of "L" you get the the proposal "{@link List}" (highlighting off by 7)
(In reply to Andreas Sewe from comment #1) > (In reply to Marcel Bruch from comment #0) > > Subwords cannot properly highlight proposals that have a prefix like {@link > > ...}, {@value ...}. We need some kind of offset in the processable proposal > > API to fix that. > > Some thoughts on this that came up while fixing Bug 465898: > > - Javadoc tag proposals are just ordinary JavaCompletionProposal, but they > do have a special kind (JAVADOC_INLINE_TAG, etc.), so we can distinguish > them. > > - When completing with a prefix of "{@" you get the proposal "{@link}" > (already highlighted correctly). > > - When completing with a prefix of "L" you get the the proposal "{@link > List}" (highlighting off by 7) The situation is slightly tricker for method or field proposals of the form {@link Collections#emptyList()} or {@value Collections#EMPTY_LIST} as their matching area starts at a variable offset. I have pushed a change to Gerrit that should cover these cases, though [1]. Of course, this requires some careful testing. [1] <https://git.eclipse.org/r/#/c/49124/>
Change is merged