I’m trying to get views is_read_only state.
In .sublime-workspace file, I see buffers[id].settings.read_only
Why can’t I get these value on load, since after loading (?) these views will have this state ?
class ReadonlyCheckViewEventListener(sublime_plugin.ViewEventListener):
def on_load(self):
print("ReadOnly Check: on_load of self.view %d" % self.view.id())
print("self.view.is_read_only() == %s" % str(self.view.is_read_only()))