Event after grammar changed AND document parsed?


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)


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


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.