Closed dschwen closed 4 years ago
Yes, parseTextBufferSync
takes a superstring text buffer, which is available as a private field of the Atom TextBuffer
.
Uhm, wait, its either available or ts private. Or is there a getter? How else would I parse an atom editor buffer?
It's private, but this JavaScript, so private just means that it's undocumented, and not guaranteed by the Atom team to be API-stable.
Are you doing this in Atom? Or are you using the text-buffer
library in your own application? I'm going to close this out, since I don't think there is an issue with this library.
throws an error
Uncaught (in promise) TypeError: buffer.getSnapshot is not a function
here.editor.getBuffer()
returns aTextBuffer
object, but it does not have agetSnapshot()
method. I've looked and foundgetSnapshot
mentioned in the super string interface, but not in Atom'sTextBuffer
object. Are we talking about a different TextBuffer here?