Conversation
2d87e5f to
c9d5a9b
Compare
|
@maxbrunsfeld Could you review this? |
0e78c95 to
5dd7136
Compare
|
Is there anyone to check this? @nshikov @maxbrunsfeld @t9md @50Wliu |
be16a04 to
bda0c3d
Compare
up scripts
Update select-list-view.ts Update select-list-view.ts Update select-list-view.ts Update select-list-view.ts Update select-list-view.ts Update select-list-view.ts object | string object | string Update select-list-view.ts
Allows TypeScript to infer the types
Glad to hear from you!
There are only 2-3 people officially working part-time on Atom. They rarely get time to address the PRs. We are considering forking the whole organization in @atom-community, so I am not surprised anymore that I did not get any response here.
I addressed most of them. I left some comments for the unresolved ones. |
winstliu
left a comment
There was a problem hiding this comment.
Mostly minor stuff, but still a few questions
src/select-list-view.ts
Outdated
| props: SelectListProperties | ||
|
|
||
| /** an array containing the objects you want to show in the select list. */ | ||
| items: Array<object | string> // TODO: Added initializer! Either fix this.items or assign it in constructor |
There was a problem hiding this comment.
I looked through the code to re-familiarize myself with this. It technically is assigned in the constructor, via computeItems. Does Typescript throw an error if it's not explicitly set in the constructor itself? I forget how good it is at following the codeflow.
I'm not positive, but I think it is necessary because of the slices we do on it; this way this.props.items is the original copy and this.items is the filtered & ordered list that's shown.
src/select-list-view.ts
Outdated
| props: SelectListProperties | ||
|
|
||
| /** an array containing the objects you want to show in the select list. */ | ||
| items: Array<object | string> // TODO: Added initializer! Either fix this.items or assign it in constructor |
There was a problem hiding this comment.
And: is this meant to be public?
Co-authored-by: Winston Liu <Wliu1402@gmail.com>
Yes, that seems like it. I will change it to private because it is not documented. |
winstliu
left a comment
There was a problem hiding this comment.
Buncha small stuff. Only thing I'm blocking over is the last TODO comment.
(p.s. you'll do reviewers a favor if you elaborate more on what you mean by your TODOs in the future 🙂)
Co-authored-by: Winston Liu <Wliu1402@gmail.com>
Which one should I remove? |
|
Both :) |
Co-authored-by: Winston Liu <Wliu1402@gmail.com>
|
@50Wliu Could you merge this if you have access? I don't want to wait another year for merging 😞 |
|
Sorry, I don't merge things anymore :/. |
Ready to get merged - Tested and is working
Description of the Change - Release Notes
Verification Process
Possible Drawbacks
Alternate Designs