Dart-code: functions with types don't match functions without types' highlighting color

Created on 9 Jan 2019  ·  4Comments  ·  Source: Dart-Code/Dart-Code

screen shot 2019-01-08 at 11 01 45 pm

I've noticed that functions and method with generics do not get the same color format as functions/methods without. Is this intentional? Is this a Dart-Code issue or an issue with my color palette?

Thank you!

in editor is bug

All 4 comments

Looks like a bug to me!

main() {}

void func1() {
  func2<String>();
}

void func2<T>() {
  func1();
}

class Class1 {}

class Class2<T> {}

Before:
screenshot 2019-01-15 at 1 47 20 pm

After:
screenshot 2019-01-15 at 1 46 56 pm

The only slight niggle is that if you type a < immediately after some text (without whitespace) it'll also trigger (for ex if (a<10) but we can't really fix that without "real" colouring from the server (which VS Code does not currently support).

LGTM! Thanks Dan for the hard work. :)

Np, thanks for finding/opening the issues! :-)

I think my email rules need some work - this notification should up with an "Approved" tag because it contained "LGTM" 😆

screenshot 2019-01-15 at 3 18 34 pm

Was this page helpful?
0 / 5 - 0 ratings