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

Set-PSReadLineKeyHandler #157298

Closed
BenjuhminStewart opened this issue Aug 5, 2022 · 4 comments · Fixed by #157711
Closed

Set-PSReadLineKeyHandler #157298

BenjuhminStewart opened this issue Aug 5, 2022 · 4 comments · Fixed by #157711
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug insiders-released Patch has been released in VS Code Insiders terminal-shell-integration Shell integration, command decorations, etc. terminal-shell-pwsh An issue in the terminal specific to PowerShell verified Verification succeeded
Milestone

Comments

@BenjuhminStewart
Copy link

BenjuhminStewart commented Aug 5, 2022

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.70.0
  • OS Version: macOS 12.4

Steps to Reproduce:

  1. Open PowerShell Terminal

image

@VSCodeTriageBot
Copy link
Collaborator

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.70.0. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

@BenjuhminStewart
Copy link
Author

My version is 1.70.0. Still remains

@meganrogge meganrogge added bug Issue identified by VS Code Team member as probable bug confirmation-pending terminal-shell-integration Shell integration, command decorations, etc. terminal-shell-pwsh An issue in the terminal specific to PowerShell labels Aug 8, 2022
@davea1
Copy link

davea1 commented Aug 8, 2022

I'm seeing this issue on Windows 10.

It seems to be specifically tied to the use of the Vi edit mode:

Set-PSReadLineOption -EditMode Vi

I was able to temporarily workaround the issue by hacking the file: "$env:LocalAppData\Programs\Microsoft VS Code\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegration.ps1" and changing line 81 from:

Set-PSReadLineKeyHandler -Chord $Sequence -Function $Handler.Function

to:

Set-PSReadLineKeyHandler -Chord $Sequence -Function $Handler.Function[0]

Related to the changes made for: #45705

@Tyriar Tyriar added this to the August 2022 milestone Aug 9, 2022
@VSCodeTriageBot VSCodeTriageBot added unreleased Patch has not yet been released in VS Code Insiders insiders-released Patch has been released in VS Code Insiders and removed unreleased Patch has not yet been released in VS Code Insiders labels Aug 10, 2022
@TylerLeonhardt TylerLeonhardt added the verified Verification succeeded label Aug 25, 2022
@zhaoqingqing
Copy link

I'm seeing this issue on Windows 10.

It seems to be specifically tied to the use of the Vi edit mode:

Set-PSReadLineOption -EditMode Vi

I was able to temporarily workaround the issue by hacking the file: "$env:LocalAppData\Programs\Microsoft VS Code\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegration.ps1" and changing line 81 from:

Set-PSReadLineKeyHandler -Chord $Sequence -Function $Handler.Function

to:

Set-PSReadLineKeyHandler -Chord $Sequence -Function $Handler.Function[0]

Related to the changes made for: #45705

not work in my win10 and vscode 1.70.0

版本: 1.70.0 (user setup)
提交: da76f93
日期: 2022-08-04T04:38:16.462Z
Electron: 18.3.5
Chromium: 100.0.4896.160
Node.js: 16.13.2
V8: 10.0.139.17-electron.0
OS: Windows_NT x64 10.0.19042

@github-actions github-actions bot locked and limited conversation to collaborators Sep 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug insiders-released Patch has been released in VS Code Insiders terminal-shell-integration Shell integration, command decorations, etc. terminal-shell-pwsh An issue in the terminal specific to PowerShell verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants