You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 8, 2023. It is now read-only.
When formatonsave is activated, saving the file places the cursor at the very end of the file, forcing the user to manually move the cursor back to its initial position.
The folded sections also gets unfolded, which makes it even more difficult to go back to initial position when working on large css files
Expected behavior
when formatonsave is activated, saving the file should not change the cursor position, it should remain on the line that it was on.
Steps to reproduce
configure vscode csscomb to formatonsave
create a css file and type css code into it
save file
Config
"csscomb.formatOnSave": true,
Note:
this issue is there because a previous issue was closed by the reporter but never worked on : #110
Edit : this issue doesn't occur when formatOnSave is false and you run command "CSSComb: Format styles" from command palette (CTRL+SHIFT+p).