hax / refactor

Refactoring support in Atom.
https://atom.io/packages/refactor
MIT License
36 stars 8 forks source link

TextBuffer.setTextInRange is deprecated. #54

Closed ChristopherFunk closed 6 years ago

ChristopherFunk commented 6 years ago

The Depreciation Cop popped up for me today:

The undo option is deprecated. Call groupLastChanges() on the TextBuffer afterward instead.

TextBuffer.setTextInRange (<embedded>:33539:22)
TextEditor.setTextInBufferRange (<embedded>:3552:35)
Watcher.rename (/home/chris/.atom/packages/refactor/lib/watcher.coffee:267:23)
<unknown> (/home/chris/.atom/packages/refactor/lib/refactor.coffee:80:52)
Set.forEach (native)
Main.onRename (/home/chris/.atom/packages/refactor/lib/refactor.coffee:79:21)
hax commented 6 years ago

PR is welcomed 😃

ChristopherFunk commented 6 years ago

This message stopped appearing magically a few days ago, I suppose it's working correctly now. I'll close it for now though.

nemoDreamer commented 6 years ago

Aaaand it's back.