Why isn't less file scroll position remembered on reload?


#1

Why isn’t a type .less file scroll position remembered on reload? My .coffee files are.


#2

I think what’s happening (at least what seems to be happening when I try to repro this) is that Atom:

  1. Deserializes the editor view (which places the scroll position back where it was when you exited)
  2. Scrolls to put the cursor in the visible area

When I had the cursor on line 1 in my styles.less file and scrolled to put line 42 at the top of the view before exiting, it would behave like above. When I put the cursor on line 42 and scrolled to put line 42 at the top of the view, it restored the previous location like I expected.


#3

I don’t see any scrolling at all after the reload. The scroll and cursor are always at line 1. I’ll play with it some more.