Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Don't use executeCommand on python sub-shell for WSL #24545

Closed
wants to merge 6 commits into from

Conversation

anthonykim1
Copy link

Related: #24418
Further resolves: #24422
Shell integration does not exist on windows python repl so dont use execute command on python subshell in this case. --- Guard against WSL too.

This will prevent keyboard interrupt from happening even when setting for shell integration is enabled for python shell (which is currently only supported on mac and linux)

@anthonykim1 anthonykim1 self-assigned this Dec 4, 2024
@anthonykim1 anthonykim1 added bug Issue identified by VS Code Team member as probable bug area-terminal labels Dec 4, 2024
@anthonykim1 anthonykim1 added this to the November 2024 milestone Dec 4, 2024
@anthonykim1 anthonykim1 marked this pull request as ready for review December 4, 2024 18:36
@anthonykim1 anthonykim1 marked this pull request as draft December 4, 2024 18:38
@anthonykim1 anthonykim1 marked this pull request as ready for review December 4, 2024 19:20
@anthonykim1 anthonykim1 closed this Dec 4, 2024
@anthonykim1
Copy link
Author

Closing this for now. Just talked with @Tyriar and looks like we won't encounter the keyboard interrupt issue for wsl since readline still seems to be available when in WSL although its not available on windows itself. Will keep very close eye on this and test this again with @Tyriar to make sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-terminal bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

KeyboardInterrupt When Running Selection/Line in Python Terminal with 'Shift+Enter'
3 participants