VS Code Hangs When Opening Specific PowerShell File #56430
Labels
freeze-slow-crash-leak
VS Code crashing, performance, freeze and memory leak issues
verified
Verification succeeded
Milestone
Issue Type: Bug
I am experiencing a problem with VS Code hanging when opening a specific PowerShell file. I think the problem is with the Powershell Language Basics extension, not the Powershell extension, which is why I'm posting here.
When opening the specific script VS Code will hang and eventually I'll receive a prompt saying "The window is no longer responding" and I'm given the option to Reopen, Keep Waiting, or Close.
Reopening the window results in the same behaviour.
Keep Waiting results the same behaviour, though I only clicked it 5-6 times before giving up.
Closing the window works correctly.
If I disable the PowerShell extension and Powershell Language Basics extension, the file loads properly.
If I then re-enable the PowerShell extension and reload, VS Code hangs again.
If I disable the PowerShell extension but leave the Powershell Language Basics extension enabled, the file fails to load.
I can open any other PowerShell file with both extensions enabled, it's just the one file that causes problems. It's 29 KB and ~700 lines. I've tried on two different machines running the same version of Windows, VS Code, and the extensions with no difference in behaviour.
No logs are created in the
.vscode\extensions\ms-vscode.powershell-1.8.2\logs
folder when this error occurs.VS Code version: Code 1.26.0 (4e93618, 2018-08-13T16:29:31.933Z)
This was also attempted on 1.27.0-insider with the same results
OS version: Windows_NT x64 10.0.17134
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Extensions (2)
The text was updated successfully, but these errors were encountered: