Skip to content

Add a default for saveBeforeStart setting #3338

Closed
@TylerLeonhardt

Description

@TylerLeonhardt

All you have to do is add:

"configurationDefaults": {
      "[powershell]": {
        "debug.saveBeforeStart": "nonUntitledEditorsInActiveGroup"
      }
    },

under contributes in the package.json.

here's an example:
https://github.com/microsoft/vscode/blob/bce4d71f648a963cad905ee0ecc7b353ddd3f199/extensions/markdown-language-features/package.json#L311

Then Untitled file debugging will no longer prompt to save :)

Note: VS Code made this setting "language-aware" literally today. So this will work starting with tomorrow's insider build. There's no downside of this being set for those folks on older versions of VS Code so this change can really go in whenever.

cc @isidorn

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions