angularjs-eclipse icon indicating copy to clipboard operation
angularjs-eclipse copied to clipboard

AngularJS proposals in Angular Expressions should be higher than any other proposals (like tag proposals, etc.)

Open vrubezhny opened this issue 11 years ago • 3 comments

When using Content Assist while editing Angular Expressions in text regions Content Assist Proposals are placed under the tonns of HTML tag proposals that actually aren't applicapable in Angular Expresstions. Despite the fact that the priority for the Angular JS Proposals Category can be edited thrugh the Preferences, Angular Content Assist Proposals should be at top of the Proposal's List by Default. Otherwise it looks like a bug, because it's too difficult to find correct proposals in Proposal's List when all is configured by default.

vrubezhny avatar Sep 08 '14 16:09 vrubezhny

This problem comes from since 0.5.0 uses semantic highlight and not custom Angular Region expression (JFlex).

As you said, this priority can be managed with preferences https://github.com/angelozerr/angularjs-eclipse/wiki/New-and-Noteworthy-0.5.0#user-content-html-angular-tag-proposals

But I don't know how to manage this priority with some extension point. Is it possible?

angelozerr avatar Sep 08 '14 17:09 angelozerr

No, it doesn't help. If a user have installed Angular JS and uses its features (like Angular Expressions) he/she wants to have those proposals at the top of the list for Angular Expresion regions.

As for now there is a tonn of HTML Tag proposals at the top of proposal list which are completely hiding the Angular proposals, while there should be no HTML Tag proposals at all for Angular Expression region ("{{|}}").

I know that after you have removed the Angular DOM document, there is no way to hide HTML Tag proposals for Angular Expression regions (actually it's possible, but pretty hard to do), so the solution I see is to rise the default "priority" of Angular JS proposals so they to be shown at the top of the proposal list. (Of course, there should still be the possibility to lower these proposals in the list by configuring the categories order through https://github.com/angelozerr/angularjs-eclipse/wiki/New-and-Noteworthy-0.5.0#user-content-html-angular-tag-proposals).

vrubezhny avatar Sep 09 '14 14:09 vrubezhny

the solution I see is to rise the default "priority" of Angular JS proposals so they to be shown at the top of the proposal list

Could you create a PR for that?

angelozerr avatar Sep 09 '14 14:09 angelozerr