Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TS arrow functions in classes break theme coloring. #3919

Closed
nozzlegear opened this issue Mar 9, 2016 · 1 comment
Closed

TS arrow functions in classes break theme coloring. #3919

nozzlegear opened this issue Mar 9, 2016 · 1 comment
Assignees

Comments

@nozzlegear
Copy link

Adding an arrow function to a TS class breaks the VSCode theme. Compare this screenshot:

before-arrow-function

To this one, after changing the Test function to an arrow function:

after-arrow-function

I've tested this in both the Dark default and Light default theme, bug is present in both themes. It's also present in both .ts and .tsx files. I'm using VSCode version 0.10.10.

Steps to reproduce:

  1. Create a new TS file and give it a class.
  2. Add two normal functions to that class (i.e. public SomeMethod() { } public OtherMethod() { } ).
  3. Change the first function to an arrow function ( public SomeMethod = () => { } ).
  4. Theme colors on all functions below SomeMethod are now broken.
@nozzlegear nozzlegear changed the title TS arrow functions in classes break the theme. TS arrow functions in classes break theme coloring. Mar 9, 2016
@aeschli
Copy link
Contributor

aeschli commented Mar 10, 2016

This issue was moved to microsoft/TypeScript-TmLanguage#119

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants