We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Trying to run the following:
$NewRunspace = [runspacefactory]::CreateRunspace() $NewRunspace.Open() $Host.PushRunspace($NewRunspace)
Will cause the terminal to rapidly write out error messages with no way to stop it without killing the terminal.
I don't expect this to work, but it should throw a notsupported error and recover if I try to do something that isn't supported.
Name Value ---- ----- PSVersion 7.5.0-preview.1 PSEdition Core GitCommitId 7.5.0-preview.1 OS Microsoft Windows 10.0.19045 Platform Win32NT PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 WSManStackVersion 3.0 Name : Visual Studio Code Host Version : 2024.3.0 InstanceId : b64cd44e-851c-4783-aa4e-b24d4d5cfeae UI : System.Management.Automation.Internal.Host.InternalHostUserInterface CurrentCulture : da-DK CurrentUICulture : da-DK PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy DebuggerEnabled : True IsRunspacePushed : False Runspace : System.Management.Automation.Runspaces.LocalRunspace
1.87.0-insider ec291c126878742ad640055ce604a58129cd088c x64
ms-vscode.powershell@2024.3.0
Paste the code from above into the terminal
No response
The text was updated successfully, but these errors were encountered:
Yeah makes sense. I think ConsoleHost in PowerShell also needs a check, it just happens to fail due to an NRE iirc
ConsoleHost
Sorry, something went wrong.
No branches or pull requests
Prerequisites
Summary
Trying to run the following:
Will cause the terminal to rapidly write out error messages with no way to stop it without killing the terminal.
I don't expect this to work, but it should throw a notsupported error and recover if I try to do something that isn't supported.
PowerShell Version
Visual Studio Code Version
Extension Version
ms-vscode.powershell@2024.3.0
Steps to Reproduce
Paste the code from above into the terminal
Visuals
No response
Logs
No response
The text was updated successfully, but these errors were encountered: