-
Notifications
You must be signed in to change notification settings - Fork 511
Pasting to PSIT strips characters breaking filepaths, and is missing terminalShellType
#3260
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
Comments
Do you have the PSRL key handler that tries to auto close quotes? Those tend to wreak havoc when the terminal host pretends to paste with input sequences.
Is it missing for just the PSIC? Or is it also missing for a non-extension pwsh terminal? |
Here's the issue to track for that: PowerShell/PowerShellEditorServices#840 |
Thanks @ninmonkey thanks for testing all of that and providing a very detailed report-- we really appreciate that...given that this is only reproducing in code-insiders and not code it appears to be a bug with code insiders |
@SydneyhSmith It is now failing in regular Somewhere an encode or decode error is happening with the
Resultsin VS Code
in WindowsTerminal
Steps to reproducePS> 'text' | Set-Content 'temp:\color🎨test.ps1'
PS> code (gi Temp:\color🎨test.ps1 -ea stop) Then copy the path with the UI
No. I grepped for
|
update: Toggling this keybind on/off toggles the bug on and off. {
"key": "ctrl+v", // fixes a lot of paste problems for pwsh at least
"command": "-workbench.action.terminal.paste",
"when": "terminalFocus"
}, NoteThe video has PSReadline beta enabled, but
I could not find |
Closing summary: This seems to be an external bug / caused by Test Case: Error
File not found Test Case: Working
Get-Item does find the file It doesn't seem to matter whether the 3 encodings are set to |
System Details
System Details Output (Click to Expand)
Issue Description
ctrl+v
to the terminal has encoding errors incode-insider
but notcode
ctrl+v
when the term ispwsh
is broken incode-insider
but notcode
"
terminalShellType
is missing incode-insider
Expected Behavior
Actual Behavior
code
code-insider
occurs on
ms-vscode.powershell
andms-vscode.powershell-preview
There is no
terminalShellType
property incode-insider
Paste breaks when it starts with a double quote
"
Breaks on Paste
Works:
Methods that work around the problem
(get-clipboard)
, orcode-insider
keybindings forctrl+v
The Default keybinding condition:
Attached Logs
PowershellEditorServices-2021-03-27.log
Profile
Note: I have a customized terminal, but a few reasons make me think that's not the cause
bug
does not occur on regularcode
bug
does not occur usingwindowsterminal
code-insider
The text was updated successfully, but these errors were encountered: