amatiasq / vsc-sort-imports

Sort ES6 imports automatically.
ISC License
58 stars 24 forks source link

Add a "sort-imports.on-focus-change" sorting option #30

Open raskanskyz opened 6 years ago

raskanskyz commented 6 years ago

It would be nice to have an option to trigger sorting functionality onFocusChange and not necessarily trigger it when document is saved.

The reason is when having save set to onDelay in vscode sort-imports triggers sort function and focused file in editor "jumps" for a fraction of a second which can get quite annoying when "files.autoSave": "afterDelay" is set.

amatiasq commented 6 years ago

Interesting, I would have to research how can this be done but I don't have much time for now. PRs or guidance is always welcome 👍