

def stop(self):
    if (not (self.inputView.id() in watchers)):
        return
    print(('Stop watching: ' + self.inputView.file_name()))
    del watchers[self.inputView.id()]
    window = (self.outputView.window() or self.inputView.window())
    if self.outputView.window():
        window.focus_view(self.outputView)
        window.run_command('close')
    if ((len(watchers) == 0) and (len(window.views_in_group(1)) == 0)):
        window.run_command('set_layout', {
            'cols': [0.0, 1.0],
            'rows': [0.0, 1.0],
            'cells': [[0, 0, 1, 1]],
        })

dataset/ETHPy150Open lavrton/sublime-better-typescript/TypeScript.py Watcher.stop/original