Describe the bug
Named constructor's token color is broken with LSP.
To Reproduce
Use the default theme, enable LSP.
Expected behavior
Named constructor's token should be painted with a color of a method.
Screenshots
LSP:

Without LSP:

With LSP:

Without LSP:

Here is how GitHub colours these tokens:
@freezed
abstract class NoteFormEvent with _$NoteFormEvent {
const factory NoteFormEvent.initialized(Option<Note> initialNoteOption) =
_Initialized;
const factory NoteFormEvent.bodyChanged(String bodyStr) = _BodyChanged;
const factory NoteFormEvent.colorChanged(Color color) = _ColorChanged;
const factory NoteFormEvent.todosChanged(KtList<TodoItemPrimitive> todos) =
_TodosChanged;
const factory NoteFormEvent.saved() = _Saved;
}
@injectable
class AuthBloc extends Bloc<AuthEvent, AuthState> {
final IAuthFacade _authFacade;
AuthBloc(
this._authFacade,
) : super(const AuthState.initial());
@override
Stream<AuthState> mapEventToState(
AuthEvent event,
) async* {
yield* event.map(
authCheckRequested: (e) async* {
final userOption = _authFacade.getSignedUser();
yield userOption.fold(
() => const AuthState.unauthenticated(),
(_) => const AuthState.authenticated(),
);
},
signedOut: (e) async* {
await _authFacade.signOut();
yield const AuthState.unauthenticated();
},
);
}
}
Versions (please complete the following information):
- VS Code version: 1.56.2 (Universal)
- Dart extension version: 3.22.0
- Dart/Flutter SDK version: 2.13.0 (stable)
Describe the bug
Named constructor's token color is broken with LSP.
To Reproduce
Use the default theme, enable LSP.
Expected behavior
Named constructor's token should be painted with a color of a method.
Screenshots


LSP:
Without LSP:
With LSP:


Without LSP:
Here is how GitHub colours these tokens:
Versions (please complete the following information):