Hi,
I’m having trouble invoking view.insert() within the “on_done” callback of show_quick_panel().
Elsewhere in my code, view.insert() and view.replace() work fine, but when called within a callback they remain silent.
Simplest non-working example included below.
Has anybody come across this before?
ST Build 3019
class TestTextCommand(sublime_plugin.TextCommand):
def on_done(self, index):
self.view.insert(self.edit, 0, "asdf")
def run(self, edit):
self.edit = edit
self.view.window().show_quick_panel("one", "two", "buckle my", "shoe"], self.on_done)