Skip to content

Conversation

billti
Copy link
Member

@billti billti commented Feb 21, 2018

Fixes the issue discussed at https://developercommunity.visualstudio.com/content/problem/37434/jsx-attribute-no-longer-highlighted-in-dark-theme.html .

Note that tests were giving me massive failures on a fresh clone before any changes at all, so I'm just going to assume these are existing issues from out of date tests.

CC @mhegazy

@ChangedLater
Copy link

Hi,
I am the original reporter in the link provided above. I have tested locally and these changes fix the issue above.
Thanks Bill


- scope: meta.tag string.quoted, meta.tag string.quoted punctuation.definition.string, meta.tag string.quoted constant.character.escape
settings: { vsclassificationtype: xml literal - attribute value }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You would also want to do this in TypeScriptReact.Yaml-tmTheme

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't sure what those scopes apply to, so I didn't want to risk making something worse as nobody is complaining about anything other than the attribute name.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I disagree. https://github.com/Microsoft/TypeScript-TmLanguage/blob/master/TypeScriptReact.YAML-tmTheme#L11 has attribute value which you changed in this PR to HTML Attribute Value, you want to do same on that line. I also think we should change the { vsclassificationtype: xml literal - text } part as well since we changed everything else to HTML. this is just incomplete change.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any way to change the color? (now JSX attrs have same color as the HTML tags and it's not good, tags are different from attributes)

@@ -0,0 +1,974 @@
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not checking package-lock.json as its not related to this change.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a whitespace only change (line endings probably). There is no change that would impact anything.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file wasnt added to git repo earlier and is being added as part of your change.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@billti billti merged commit 57f591c into master Feb 21, 2018
@billti billti deleted the dev/billti/setJsxToHtmlClassifications branch February 21, 2018 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants