-
Notifications
You must be signed in to change notification settings - Fork 484
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 and Set Config for Files and Plugins #1494
Conversation
8213db8
to
cad89a2
Compare
Test fail, please fix this. |
I've removed the bits in this PR that expose the tab via props to the extension. The way to access application state is via events. This is what we agreed upon to get out of the React propagation mess. 💯 |
@barmac Please take this PR over for review. |
Sure. |
52f2b39
to
21ca07d
Compare
@barmac is taking over the review
@barmac Ready to be reviewed |
app/lib/file-system.js
Outdated
@@ -8,8 +8,6 @@ | |||
* except in compliance with the MIT License. | |||
*/ | |||
|
|||
'use strict'; |
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.
What's the reason of disabling strict mode?
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.
No need to do that:
- ES modules => Strict is default, no 'use strict' header
- NodeJS => Need 'use strict' header
Maybe there exists lint rules that can help us with keeping the the difference?
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.
To sum up, as the file is not an ES module, 'use strict';
should stay.
* unify ClientConfig and Config into Config * use <userPath>/config.json as default * add provider for custom functionality * add Client#getForFile, Client#setForFile, Client#getForPlugin and Client#setForPlugin * rename App#loadConfig to #getConfig Related to #1066
* file system is stateless, no class is needed
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.
App
Client
Related to #1066
Related to #1397
Closes #1425