Issue Type: Bug
Same as in https://github.com/PowerShell/vscode-powershell/issues/1753 but only when pasting and sometime it misses random letters and not just the first one.
Extension version: 2019.11.1
VS Code version: Code 1.39.2 (6ab598523be7a800d7f3eb4d92d7ab9a66069390, 2019-10-15T15:35:18.241Z)
OS version: Windows_NT x64 10.0.18362
System Info
|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz (8 x 3392)|
|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: unavailable_off
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.93GB (6.52GB free)|
|Process Argv||
|Screen Reader|no|
|VM|67%|
@ili101 thanks for opening this issue! We are able to reproduce this and are investigating what may be causing this.
@ili101 we have published a fix for this, please let us know if you are still hitting this issue--thanks!
Still a problem on 2020.2.0 Preview
This doesn't repro on non-Windows. I'll have to try when I get into the office tomorrow.
@SeeminglyScience any thoughts?
Maybe race condition here?
Maybe because the handle is released before the field is nulled?
Shot in the dark, if that doesn't pan out let me know and I'll take a closer look.
This only seems to affect the _first_ call to Read-Host and only when running with debugging (F5) for the first time in a session.
Oh you know what, I bet the PSRL ReadKey thread isn't getting cancelled.
But wouldn't subsequent F5's have the same issue then?
Ok I've got a PR out for this!
Most helpful comment
Ok I've got a PR out for this!