Event after grammar changed AND document parsed?


#1

I’m looking to use editor.isBufferRowCommented(i) in a package whenever a new file is opened. I can’t seem to find an event that fires on the editor/buffer after the document has been parsed.

There is ‘grammar-changed’, but that fires before it parses comments in the file (editor.isBufferRowCommented always returns false)


#2

It looks like we don’t have an event for that. I’ll add it to our internal issue tacker.


#3

I don’t know if it’s what you’re looking for but you can subscribe to the editor.displayBuffer.tokenizedBuffer's changed event to be notified when the tokenization of the buffer is done.