-
-
Notifications
You must be signed in to change notification settings - Fork 503
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
refactor: configuration, settings and options #3317
base: main
Are you sure you want to change the base?
Conversation
Parser conformance results onjs/262
jsx/babel
symbols/microsoft
ts/babel
ts/microsoft
|
ddaf359
to
82f467d
Compare
CodSpeed Performance ReportMerging #3317 will not alter performanceComparing Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of the other diffs are caused by variable renaming. This file is the starting point.
d1bcf4e
to
5795511
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me so far.
076de02
to
2152f5a
Compare
ca541ea
to
7d2ef58
Compare
Could you explain the reasons for removing this macro and what you are using instead? |
The reason is that we almost always want to wrap options as Currently, we have some bugs when converting between concrete structs and partial structs, which may accidentally convert a What I'm using instead is forcing I'm also experimenting with a model where each option carries its default value in its type directly, so that whenever we need to get a concrete value of an option, we just need |
Thanks for the rationales. |
c545f2d
to
3494506
Compare
3494506
to
5eedd9f
Compare
I have some questions regarding how we handle Based on my understanding of this feature, I summarized the logic as the table below. Is it ok that I refactor the code to use 👇 to determine whether a path should be included or ignored?
|
5eedd9f
to
033e90c
Compare
@Sec-ant yeah that's about right. Empty lists should not run any matching. The golden rule is that If |
Everything looks good to me. I changed this in January / February to have a more consistent behavior. As Ema said What looks wrong to you? If I were to design the configuration now, I think I would just give a single field (e.g. |
Oh, this is exactly how I see it, so nothing looks wrong to me :). The only thing I'd like to keep you informed before doing it is that, now that we decide to always use |
And FWIW, I'll keep working on this PR in the following days but I cannot gaurantee a specific timeframe, so this shouldn't be a blocker for any foreseeable release plans, just in case. |
0966d04
to
231a856
Compare
231a856
to
5e9416a
Compare
5e9416a
to
b957d12
Compare
Summary
A preliminary attempt to address #3297, #3310 (comment) etc.
Option<T>
inJsParserSettings
Partial
macro.Test Plan
CI passes. No performance degradation.