The exec command uses its own output panel. I’ve tried to get one in my plugin too, but I can’t make it work.
# Run command, don't modify the buffer, output to output panel.
if not as_filter:
self.output_view = self.view.window().get_output_panel("powershell")
out, error = run_posh_command(userPoShCmd)
if out or error:
self.view.window().get_output_panel("powershell")
# FIXME: Use a dedicated output panel for powershell.
# print out
# print error
append(self.output_view, out + "\n")
append(self.output_view, error)
self.view.window().run_command("show_panel", {"panel": "ouput.powershell"})
return