How to disable autosave in my JupyterLab extension?

I know that we can do it manually through settings but how to do it through my extension so that it would start the extension with autosave disabled?