-
Notifications
You must be signed in to change notification settings - Fork 645
Can clicking "run tests" automatically save the file? #1225
Comments
In case it matters, I have file.autoSave on. Here are my preferences:
|
Sure that is doable and is pretty simple. The change should be done here: https://github.com/Microsoft/vscode-go/blob/0.6.65/src/goTest.ts#L34 You can use |
would it make sense to have this disabled by default and have a flag to enable? something like |
@chaseadamsio Why so? When you explicitly click on the Is it so as to not race with the Auto Save feature? |
If the expected behavior is always save the file when you run the tests I think it makes sense. Personally I like having flags for anything I might want to disable, so that was the only reason I suggested it. I'll pick this up and submit a PR. |
* add auto save to tests on test run or debug. Fixes #1225 * goTest: remove flag for saving test file on run or debug * goTest: add document save to testCurrentFile * goTest: fix indentation in testCurrentFile * goTest: add return for document.save in testCurrentFile
In the latest update to the Go extension, the files get saved when test is triggered. |
If I edit a test and click "run test", there is a dialog:
It seems like it would be better to automatically save the file?
The text was updated successfully, but these errors were encountered: