Nimral
Nimral

Reputation: 697

Disable "Run last successful build" in Visual Studio Code (!)

If a C# compile/build fails, I usually got a prompt whether to run the last successful build.

Somehow this dialog got turned off permanently. Now, if there is a compile error, VSC will automatically run the last successful build without a query, which is usually pretty useless and annoying.

How can I (a) get back the query, and then, if possible, (b) remove it, but in a way the last successful build is not executed?

Note: there is a documented procedure for Visual Studio, but I need the procedure for Visual Studio Code (latest version 1.61.0).

Thanx, Armin.

Upvotes: 4

Views: 1697

Answers (1)

CodeCaster
CodeCaster

Reputation: 151594

It's saved in your user settings file. Called:

"debug.onTaskErrors": "showErrors"

The options are:

  • prompt (the default)
  • debugAnyway (your setting)
  • showErrors (what you seem to be looking for)
  • abort (neither of the above)

It's in the UI as well, under "Features --> Debug --> On Task Errors":

VS Code Debug configuration

Upvotes: 4

Related Questions