int3h / SublimeFixMacPath

A Sublime Text 2/3 plugin to set the PATH correctly on OS X
315 stars 28 forks source link

Only re-set path when preference changes #17

Open SCdF opened 7 years ago

SCdF commented 7 years ago

Because preferences change when you do lots of things like change font size, and because working out the path is quite costly, only do it the first time the plugin is loaded, or if the additional_path_items preference changes.

This is a massive performance improvement on my machine. Specifically for the setting fonts case, it could mean it took seconds to change font size.