question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a default for saveBeforeStart setting

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
isidorncommented, May 21, 2021

Thanks for doing this PR. There was an issue on the VS Code side that I tackled via https://github.com/microsoft/vscode/commit/779f9876bc0a29fa2cfd811e5c613e05c5ec8e21

So now it should work. I tried it out. You can verify with vscode insiders from Monday. Thanks a lot 👏

2reactions
TylerLeonhardtcommented, May 18, 2021

This is a better solution than the other 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set default values for fields or controls - Microsoft Support
This article explains how to set a default value for a table field or for a control on a form in an Access...
Read more >
How to Set Default Values When You Create a New Record
Did you know you can set default values on records, saving your users steps as well as avoiding the potential for errors in...
Read more >
Angular google maps example - ALCA Profumerie
Start by customizing the Sightings layer, changing the default blue pin to a ... menu. npm install @agm/core -save. Before start integrating Google...
Read more >
Setting Field Defaults - IBM
How do I set field defaults in Maximo? ... The first way is to set a field default at the database level using...
Read more >
Setting default value for specific views - ServiceNow Community
Hi Everyone, is there a way to set different default values for specific views?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found