Skip to content

Conversation

@alexeyinkin
Copy link
Collaborator

@alexeyinkin alexeyinkin commented Jun 16, 2022

Fixes #41, Fixes #42

this.onChange,
}) : super(text: text) {
// PatternMap
if (language != null && theme == null) throw Exception("A theme must be provided for language parsing");
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If we allow to change language and theme, then I suggest we allow language without theme. If they both present, then we will format the code. If either one is not present, then not.

Otherwise there will be too much checks, and a nasty method like setThemeAndLanguage to set both in one call.

@alexeyinkin
Copy link
Collaborator Author

Fixes #41, Fixes #42

@BertrandBev BertrandBev merged commit 8d915f4 into BertrandBev:master Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants