Skip to content

Commit 43de75f

Browse files
committed
- disable py5 autocompletion upon deactivating imported mode
1 parent 998f457 commit 43de75f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

thonnycontrib/thonny-py5mode/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ def set_py5_imported_mode() -> None:
128128
# patched method non-existant when imported mode active at launch
129129
try:
130130
Runner.execute_current = Runner._original_execute_current
131+
# this line disable py5 autocompletion in this instance
132+
get_runner().restart_backend(False)
131133
except AttributeError:
132134
pass
133135

0 commit comments

Comments
 (0)