IDocumentManager with collaborative flag

Hi,

I have a custom extension that listens for file changes using the IDocumentManager and executes some code when a file is saved. However, this behavior breaks with the collaborative flag (Lab 3.6.2), and I am no longer receiving the callbacks. I’m assuming this is because of the auto-save functionality. Is there a way to listen for file changes with the collaborative feature enabled?

I’m doing the following to listen for changes:
iDocumentManager.services.contents.fileChanged.connect(this._onFileChange, this);

Thanks!