-
Notifications
You must be signed in to change notification settings - Fork 340
Closed
Labels
in editorRelates to code editing or language featuresRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serverSomething to be fixed in the Dart analysis serveris bug
Milestone
Description
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.
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)
Metadata
Metadata
Assignees
Labels
in editorRelates to code editing or language featuresRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serverSomething to be fixed in the Dart analysis serveris bug



