Skip to content
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

Merged
merged 3 commits into from
Mar 7, 2017
Merged

Update config options without restarting #1361

merged 3 commits into from
Mar 7, 2017

Conversation

xconverge
Copy link
Member

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

@@ -149,28 +153,28 @@ class ConfigurationClass {
/**
* Size of a tab character.
*/
@overlapSetting({ codeName: "tabSize", default: 8})
@overlapSetting({ codeName: "tabSize", default: 8 })
Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cmd+a then = :)

Copy link
Member

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.

@johnfn
Copy link
Member

johnfn commented Mar 6, 2017

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.

@xconverge
Copy link
Member Author

yep, makes sense

@rebornix
Copy link
Member

rebornix commented Mar 6, 2017

LGTM, the only thing that I think we can change is guarding Vim from flooded configuration changes.

@johnfn
Copy link
Member

johnfn commented Mar 7, 2017

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 😉

@johnfn johnfn merged commit b0bf889 into VSCodeVim:master Mar 7, 2017
@xconverge xconverge deleted the update-config-without-restart branch March 7, 2017 05:31
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants