-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Get default config options when not specified in user config #2126
Conversation
Anyone? |
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 👌 to me, @ppot?
@albinekb I don't know if it's a good Idea to use |
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.
'lodash/merge' is better.
Do not forget to commit your yarn.lock
file too ;)
app/config/init.js
Outdated
@@ -1,4 +1,5 @@ | |||
const vm = require('vm'); | |||
const deepmerge = require('deepmerge'); |
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.
I prefer to use 'lodash/merge'
here. More widely used.
I'll change tomorrow |
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.
merge
is not lodash/merge
:)
Oh I think I understood. |
And please use |
Ok. :) I understand like lodash or merge |
Can you remove |
app/package.json
Outdated
@@ -19,6 +19,8 @@ | |||
"electron-config": "1.0.0", | |||
"electron-is-dev": "0.3.0", | |||
"electron-squirrel-startup": "1.0.0", | |||
|
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.
Can you remove this extra blank line?
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.
Ok :)
Removed blank line
Anything else? |
Can you remove your |
Done |
Thank you so much for your help 🙏 |
Thank You too. I learned how is it to contribute to open-source project. |
* master: Add default keymaps reference to documentation (#2185) Add category option under linux key in root package.json (#2184) Add vscode debug config, update readme (#2181) Get default config options when not specified in user config (#2126) Fix session cleaning (#2176) Delete .DS_Store file (#2171)
App uses options from default config when not specified in user config. That's issue #1588. Now if you won't specify an option in your config, it will be automatically added from default config.