

def on_post_save(self, view):
    if (not self.is_enabled(view)):
        return
    compile_on_save = settings_get('compileOnSave', True)
    if (compile_on_save is True):
        print('Compiling on save...')
        view.run_command('compile_code')
    if (settings_get('lintOnSave', True) is True):
        self.run_command('lint_code')
    watch_save = settings_get('watchOnSave', True)
    if watch_save:
        viewID = view.id()
        if (viewID in watchers):
            watchers[viewID].refresh()

dataset/ETHPy150Open lavrton/sublime-better-typescript/TypeScript.py CaptureEditing.on_post_save/VarMisuse@73/110 `view`->`self`