简体   繁体   中英

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.

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 调试配置

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM