I can’t understand why this easy plugin don’t work (don’t create file).
class ExampleCommand(sublime_plugin.TextCommand):
def run(self, edit):
f = open("my.sublime-snippet", "w")
f.write("Hello world")
f.close()
But after any changes it works correctly.
Can anyone help me to understand this?