Skip to content

Commit

Permalink
Few more output panel changes
Browse files Browse the repository at this point in the history
  • Loading branch information
daveleroy committed Nov 20, 2022
1 parent d2b7570 commit 0d4b7c0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions modules/debugger_output_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ def update_settings(self):
settings.erase('font_size')

def set_status(self, status: ui.Image):
if self.status == status:
return

self.status = status

# if the status of a panel changes we need to re-render all the output panels
Expand Down Expand Up @@ -221,7 +224,11 @@ def is_open(self) -> bool:
def _on_show_panel(self, window: sublime.Window):
if window == self.window and window.active_panel() == self.output_panel_name:
self.scroll_to_end()
if self.on_opened: self.on_opened()
if self.on_opened:
self.on_opened()

if self.text_change_listner:
self.text_change_listner.on_text_changed([])

def _on_hide_panel(self, window: sublime.Window, name: str):
if self.on_closed and window == self.window and name == self.output_panel_name:
Expand Down Expand Up @@ -411,7 +418,6 @@ def _on_text_changed(self, edit: sublime.Edit):
if controls_and_tabs_phantom.requires_render:
controls_and_tabs_phantom.render()
else:
# if this isn't put back then its always out of position after a text change
controls_and_tabs_phantom.render_if_out_of_position()

# Figure out a better way that doesn't always scroll to the bottom when new content comes in
Expand Down

0 comments on commit 0d4b7c0

Please sign in to comment.