Description
Prerequisites
- I have written a descriptive issue title.
- I have searched all issues to ensure it has not already been reported.
- I have read the troubleshooting guide.
- I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
Summary
When attempting to execute code using F5 or F8 (within the integrated console) PowerShell never completes the action. The PowerShell logo continually spins in the bottom-left corner.
Copying and pasting code into the integrated console runs as expected, and the F8 key works as expected when another terminal is in use.
The code that should be executed is added to the PSReadLine 'Visual Studio Code Host_history.txt' file, but never appears in the console. The console is unusable after attempting to run anything - the only way to make it interactive again is to kill the console or restart VSCode.
I've attempted both the user and system installs of VSCode, as well as using the integrated console with Windows PowerShell and PowerShell Core.
PowerShell Version
Name Value
---- -----
PSVersion 5.1.19041.1023
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.1023
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
-----
Name Value
---- -----
PSVersion 7.1.3
PSEdition Core
GitCommitId 7.1.3
OS Microsoft Windows 10.0.19043
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Visual Studio Code Version
1.57.1
507ce72a4466fbb27b715c3722558bb15afa9f48
x64
Extension Version
Steps to Reproduce
- Create a file containing any PowerShell code - in my case,
test.ps1
containing$test = 'Test'
- Open the file in Visual Studio Code and wait for the integrated console to load
- Select the code and either right-click and 'Run Selection', or press F8
Or:
- Create a file containing any PowerShell code - in my case,
test.ps1
containing$test = 'Test'
- Open the file in Visual Studio Code and wait for the integrated console to load
- Select the code and either go to Run > Start Debugging, or press F5
Visuals
No response