Vscode: Feature Request: Autosave on build

Created on 24 Feb 2017  路  9Comments  路  Source: microsoft/vscode

  • VSCode Version: Code 1.9.1 (f9d0c687ff2ea7aabd85fb9a43129117c0ecf519, 2017-02-09T00:26:45.394Z)
  • OS Version: Windows_NT ia32 6.1.7601
  • Extensions:

|Extension|Author|Version|
|---|---|---|
|language-x86-64-assembly|13xforever|2.2.9|
|read-only-indicator|alefragnani|0.6.0|
|alignment|annsk|0.3.0|
|Doxygen|bbenoist|1.0.0|
|vscode-astyle|chiehyu|0.6.2|
|python|donjayamanne|0.5.8|
|EditorConfig|EditorConfig|0.3.4|
|matlab|Gimly81|0.4.0|
|status-bar-tasks|GuardRex|0.2.0|
|vscode-dimmer|hoovercj|2.1.0|
|docthis|joelday|0.4.0|
|cpptools|ms-vscode|0.10.1|
|vscode-clearcase|OpenNingia|1.6.0|
|vscode-icons|robertohuertasm|7.2.0|
|theme-cyanicpastels|SamuelLampa|0.0.9|
|indenticator|SirTori|0.2.1|
|vscode-hexdump|slevesque|1.1.4|
|code-spell-checker|streetsidesoftware|0.14.8|
|comment-snippets|Tobiah|0.2.0|
|dark-plus-material|vangware|0.2.4|
|change-case|wmaurer|1.0.0|
|highlight-trailing-white-spaces|ybaumes|0.0.2|


Steps to Reproduce:

  1. Edit a file.
  2. Run a build command.
  3. Expect dirty files to be auto saved before running the build command.

Don't think it should be for all tasks, but probably those marked as auto-save in the tasks.json. Would be good if it could be restricted to files with in the workspace folder. I can have outside files open, e.g. notes. Perhaps something like:
"autoSave": off (default)/all/workspace

*out-of-scope feature-request tasks

Most helpful comment

@alexr00 the reason why I kept it open is that this can't be control. Currently we save for all tasks before we run them. In a perfect world we would allow users to control this on a task to task basis.

All 9 comments

With the extension Trigger Task on Save you can trigger a build on save.

Slight typo in your URL there @BillDenton, fixed one:
https://marketplace.visualstudio.com/items?itemName=Gruntfuggly.triggertaskonsave

I test this again and files are saved before a task is run.

Can you provide steps where this is not happening.

Just tested and I agree it does save on build. I'm not sure when this started happening or how it can be controlled, but for the default build task in 1.18.0 it works.

It can't be controlled right now.

This issue has been closed automatically because it needs more information and has not had recent activity. Please refer to our guidelines for filing issues. Thank you for your contributions.

@dbaeumer, can this be closed? Based on the discussion, save on build already happens.

@alexr00 the reason why I kept it open is that this can't be control. Currently we save for all tasks before we run them. In a perfect world we would allow users to control this on a task to task basis.

We closed this issue because we don't plan to address it in the foreseeable future. You can find more detailed information about our decision-making process here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider.

If you wonder what we are up to, please see our roadmap and issue reporting guidelines.

Thanks for your understanding and happy coding!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vsccarl picture vsccarl  路  3Comments

trstringer picture trstringer  路  3Comments

philipgiuliani picture philipgiuliani  路  3Comments

chrisdias picture chrisdias  路  3Comments

shanalikhan picture shanalikhan  路  3Comments