PowerShell / PowerShellEditorServices

A common platform for PowerShell development support in any editor or application!
MIT License
622 stars 213 forks source link

Make `Set-ScriptExtent` not slow #1981

Closed SeeminglyScience closed 1 year ago

SeeminglyScience commented 1 year ago

This was some of the first code I ever contributed...and it shows. It's actually really easy to solve the problem of "when editing many parts of the same document, offsets no longer match up". You just go in reverse, and then you don't have that problem anymore.

So this gets rid of the "waiting for the document" to update which takes forever.