Skip to content

Add "debug.saveBeforeStart": "none" to ISE Mode/for PowerShell files in general #3200

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

Closed
TylerLeonhardt opened this issue Feb 23, 2021 · 2 comments
Assignees
Labels

Comments

@TylerLeonhardt
Copy link
Member

Summary of the new feature

Last stable vscode, we introduced a "feature" that would prompt you to save an untitled file before debugging it. This is because most debug adapters don't support debugging untitled files... But PowerShell does!

A setting was added in insiders to control this behavior now so Untitled PowerShell files are now debuggable again.

More info: microsoft/vscode#114890

Proposed technical implementation details (optional)

At a minimum, I think this setting should be added to ISE Mode. Users will expect F5 to run their script, even if it's not saved on disk, and ISE Mode was made for the beginner in mind.

Additionally, consider adding the following setting to the user's setting on start up/install:

"[powershell]" : {
    "debug.saveBeforeStart": "none";
}

Which will only apply this setting to PowerShell files.

@ghost ghost added the Needs: Triage Maintainer attention needed! label Feb 23, 2021
@SydneyhSmith
Copy link
Collaborator

Thanks for the update @TylerLeonhardt! We will update this for ISE mode.

@SydneyhSmith SydneyhSmith added Area-Configuration Area-Debugging Issue-Enhancement A feature request (enhancement). and removed Needs: Triage Maintainer attention needed! labels Feb 23, 2021
@SydneyhSmith SydneyhSmith added this to the Consider-vNext milestone Feb 23, 2021
@andyleejordan andyleejordan self-assigned this May 20, 2021
@andyleejordan
Copy link
Member

Fixed with #3357.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants