sindresorhus / editorconfig-sublime

Sublime Text plugin for EditorConfig - Helps developers maintain consistent coding styles between different editors
MIT License
1.77k stars 108 forks source link

Also run on `on_load` #79

Closed ismell closed 5 years ago

ismell commented 5 years ago

on_activated is only called when a view gains focus. When using Ctrl+P to look for a file the indent settings are not applied until a file is selected. This results in the settings changing when a file is finally picked. By applying on the load event, the settings are applied earlier and you don't visually notice them being applied.