Use the mapped result when remapping an ActiveResult through changes #31
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ondrejmirtes/autocomplete:active-result-map-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
ActiveResult.map(mapping)was callingresult.map(...)to remap the result through doc changes that the active completion survives, but then constructing thenew ActiveResultfromthis.result(the original). That meant additionalTextEdit positions and any other state a source rewrites in its map function were silently discarded along this code path.Wow, funny how that has sat around for years. Thanks for finding this.