Issue by redmunds
Thursday Mar 13, 2014 at 02:53 GMT
Originally opened as adobe/brackets#7186
This is for #7020.
I did a slight refactoring so editor prefs can be validated when ever they change. Currently only validate "tabSize" and "spaceUnits" which are numbers. All other prefs are boolean, so the only thing validation would do is to enforce default if user mucks up the prefs file.
I started a ValidationUtils module that might be useful in other places.
redmunds included the following code: https://github.com/adobe/brackets/pull/7186/commits
Thursday Mar 13, 2014 at 02:53 GMT
Originally opened as adobe/brackets#7186
This is for #7020.
I did a slight refactoring so editor prefs can be validated when ever they change. Currently only validate "tabSize" and "spaceUnits" which are numbers. All other prefs are boolean, so the only thing validation would do is to enforce default if user mucks up the prefs file.
I started a
ValidationUtilsmodule that might be useful in other places.redmunds included the following code: https://github.com/adobe/brackets/pull/7186/commits