apexskier/nova-typescript

Keep cursor position when adding auto-imports

Closed this issue · 1 comments

Related to #52

Using the auto-import suggestion is a frustrating and jarring experience because the cursor jumps to the top of the document (where the import statement is added).
This then requires you to scroll and search for where you were typing before the import was triggered, breaking flow and adding unnecessary steps.

Ideally I'd like to keep my cursor and scroll position unchanged when triggering an auto-import, so that I can continue coding away.

Before I start digging deeper into trying to solve this, I wanted to create an issue to see if you had already attempted to implement this @apexskier, but encountered limitations with the Nova APIs.

Thanks again!

Closing as this seems to have been fixed from Nova v9's side.