-
Notifications
You must be signed in to change notification settings - Fork 513
v2022.10.0 may cause previous "script" values in launch.json fail to execute #4223
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
Comments
Ah, will fix, thanks for the report. |
Hi @changbowen! I think we just got this fixed in the PowerShell Preview for VS Code. Could you verify if this issue still reproduces using the preview extension? |
Hi, thanks for the quick reply. I installed the preview version v2022.10.2. Doing |
Well, that's at least "correct." The check in there is that the debugger can only run PS1 scripts, and a |
Ok I fixed it for real this time. See #4231 |
Thanks! Is there a way I can test this? Not having a separate dedicated ps1 file in the project for each debug action will definitely make the directory tree cleaner. For example here is a selection of of my ways of "debugger abuse" that used to work for sure. (Just to show my use case.. I didn't test all so some of them might still work with the latest version.)
|
It'll be in the next preview release shortly! |
Prerequisites
Summary
A configuration like below in launch.json is valid in the previous version 2022.8.5:
With the latest 2022.10.0 it throws an error that says
PowerShell does not support debugging this file type: 'Invoke-WebRequest www.bing.com'
.I know when run like this debugging might not work but it has been a convenient feature for quickly running something using F5 instead of going into tasks and select one to run. And it has invalidated all configurations dependent on this "feature".
Looks like it's related to changes here.
PowerShell Version
Visual Studio Code Version
Extension Version
ms-vscode.powershell@2022.10.0
Steps to Reproduce
Add below configuration in launch.json and run:
Visuals
Logs
No response
The text was updated successfully, but these errors were encountered: