-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Update config options without restarting #1361
Update config options without restarting #1361
Conversation
@@ -149,28 +153,28 @@ class ConfigurationClass { | |||
/** | |||
* Size of a tab character. | |||
*/ | |||
@overlapSetting({ codeName: "tabSize", default: 8}) | |||
@overlapSetting({ codeName: "tabSize", default: 8 }) |
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.
Haha I see my weird spacing habits are starting to rub off on you.
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.
cmd+a then = :)
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.
Whoa, I didn't know that it was the standard style... I thought I was doing something weird.
Overall feedback: Instead of updating the remappers, could you just recreate them entirely - construct new ones? Ideally we only have one code path: addNewRemappers(), which gets called immediately and whenever a config update happens, rather than the 2 code paths we have right now. |
yep, makes sense |
LGTM, the only thing that I think we can change is guarding Vim from flooded configuration changes. |
Yeah this is awesome. It's super simple and an incredibly useful change. Imagine how many fewer questions we'll have to answer on Slack now 😉 |
This is really nice and was easy!
It exposes some weirdness with how we do remapping but o well.. let me know what you think