aptana / studio3

This repository contains the code for core components of Aptana Studio 3.
http://aptana.com/products/studio3
Other
1.08k stars 482 forks source link

fix(theme): try to fix syntax highlighting #519

Closed sgtcoolguy closed 4 years ago

sgtcoolguy commented 4 years ago

Fixes TISTUD-9212

This is an attempt to fix the broken theme issue that's causing syntax highlighting to effectively disappear. I'm not super happy with the fix because I don't understand exactly why it's suddenly failing.

My guess is it's two-fold:

So this fix tries to do a few things:

Note that the reason we even have OrderedProperties is to try and retain the same ordering of rules as what's on disk/in the theme when we save/load.

Also note that I'm seeing overall Eclipse E4/CSS Theme issues with our Dark Studio theme for the IDE overall. This isn't the same bug but is related and likely also needs to be fixed. (Eclipse now ships their own dark theme and we may need to just use that from here on out, but that'd require a fair number of changes - and the version of Eclipse we're building on right now doesn't list the Dark theme on macOS 10.15!)