codegrip icon indicating copy to clipboard operation
codegrip copied to clipboard

Return new cursor position from `reshape_info()`

Open dgkf opened this issue 6 months ago • 2 comments

Currently, after issue only a "change" action from the LSP, the entire region of replaced text is selected after the code action. Instead, it would be more intuitive if the same cursor remained selected through the transformation, mapping its original position to its final position.

To support this, it would be helpful if reshape_info also returned the new cursor position. The rest can be handled on the languageserver side.

dgkf avatar Aug 25 '24 04:08 dgkf