Skip to content

Commit

Permalink
added 1 second sleep when copying terminal output
Browse files Browse the repository at this point in the history
  • Loading branch information
midays committed May 15, 2024
1 parent 04cf10c commit 4941391
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/models/IDE/VisualStudioCode.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,13 @@ def copy_terminal_output(self):
split into lines, and return the list
"""
self.focus_terminal_output_panel()
time.sleep(1)
self.press_keys("ctrl", "a")
time.sleep(1)
self.press_keys("ctrl", "c")
time.sleep(1)
self.press_keys("esc")
time.sleep(1)
return get_clipboard_text(True)

def clear_terminal_output_panel(self):
Expand Down

0 comments on commit 4941391

Please sign in to comment.