Fixed
Status Update
Comments
za...@gmail.com <za...@gmail.com> #2
Two more examples of inconsistent syntax highlighting
st...@gmail.com <st...@gmail.com> #3
Yes this'd be perfect. A very familiar concept to all of us since coroutines do the same thing. I'd love to have this as an option with a default of showing but making it removable for people who may then think the gutter on the left is becoming too crowded.
ch...@google.com <ch...@google.com>
cs...@google.com <cs...@google.com> #4
Marking as FR but there is a bug to investigate for syntax highlighting in general
an...@gmail.com <an...@gmail.com> #5
This is actually a great suggestion
di...@google.com <di...@google.com>
pa...@google.com <pa...@google.com> #6
@rpaquay, is this actively being worked on? If not, please set this request to New.
cs...@google.com <cs...@google.com> #8
Comment has been deleted.
cs...@google.com <cs...@google.com> #9
FWIW I did a quick set of mockups of offering a Compose gutter icon (see attached files).
My conclusion then was that it can be quite noisy across files, and so I advise that if we do this, it is an opt-in option in Preferences.
an...@google.com <an...@google.com>
an...@google.com <an...@google.com> #10
I've submitted a fix for this, which will be available in an upcoming canary release. This gutter icon has been added as an opt-in behavior, which can be enabled by going to "Settings > Editor > General > Gutter Icons" and enabling the item under "Jetpack Compose".
Description
Compose currently uses custom IDE syntax highlighting to indicate composable function calls. This has two main issues:
#1 - It is straight up broken half the time (see the attached screenshot, where two calls to the same composable function have different highlighting)
#2 - It's visually noisy and inconsistent with how, say, coroutines are indicated. I much prefer the coroutines approach of showing a gutter icon and think compose would do well to do the same (or at least have an option to do so). Since compose even has an icon available, it could possibly just repurpose that.
Proposal of what I mean in the second screenshot