Skip to content

Pasting from editor to the Powershell Integrated Console fails using line continuation #2143

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

Closed
gbritton1 opened this issue Aug 20, 2019 · 4 comments
Labels
Resolution-Duplicate Will close automatically.

Comments

@gbritton1
Copy link

Issue Type: Bug

If I start creating a new Powershell script and enter


Get-Process `
-Name code

using line continuation in a powershell script, copy and paste that into the integrated terminal, the command fails.

image

Pasting into a regular powershell window works just fine:

image

Extension version: 2019.5.0
VS Code version: Code 1.37.1 (f06011ac164ae4dc8e753a3fe7f9549844d15e35, 2019-08-15T16:17:55.855Z)
OS version: Windows_NT x64 10.0.18362

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz (8 x 2112)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
oop_rasterization: disabled_off
protected_video_decode: enabled
rasterization: enabled
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.88GB (3.51GB free)
Process Argv
Screen Reader no
VM 0%
@ghost ghost added the Needs: Triage Maintainer attention needed! label Aug 20, 2019
@SydneyhSmith
Copy link
Collaborator

@gbritton1 thanks for opening this issue, multi-line editing support comes from the PSReadline module which is now available in the PowerShell Preview extension, we are tracking that PSReadLine is not available in the main PowerShell Extension here #1793

@gbritton1
Copy link
Author

@SydneyhSmith the repro info is in the top post

@rjmholt rjmholt added Resolution-Duplicate Will close automatically. and removed Needs-Repro-Info labels Aug 20, 2019
@SydneyhSmith SydneyhSmith removed the Needs: Triage Maintainer attention needed! label Aug 20, 2019
@rjmholt
Copy link
Contributor

rjmholt commented Aug 20, 2019

This is solved by PSReadLine, which is still in preview. You can get that by uninstalling the powershell extension and installing the powershell-preview extension.

@ghost
Copy link

ghost commented Aug 21, 2019

This issue has been marked as duplicate and has not had any activity for 1 day. It has been closed for housekeeping purposes.

@ghost ghost closed this as completed Aug 21, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Duplicate Will close automatically.
Projects
None yet
Development

No branches or pull requests

3 participants