-
Notifications
You must be signed in to change notification settings - Fork 645
Line just diapered on [Ctrl + S] #368
Comments
I just installed the package as well and I can't seem to change a go file. No matter what I do the lines get undone immediately. Strange. |
OK, I figured out my issue. I think its the gofmt tool combining with a VSCode auto save setting "files.autoSave": "afterDelay", 1000ms or 1500ms was too fast. |
@adlangx That doesn't work for me, still getting deleted... :( |
Yes - this is because of the change to turn It is true that
You can turn off Auto Save by removing the |
Neither of these two solutions works, my line is still getting deleted :) EDIT: It's seems like trivial bug, but it really makes VSCode unusable and not that productive, i have to turn on some other editor to save the file... |
@seemsindie Do you still have this issue? Can you give an example of a line of code that gets deleted for you? Is it packages that have been imported but not used yet? Or blank lines? |
Had this issue today, it seems like the formatting tool automatically deletes all the lines where you import packages that are not being used, it's a bit annoying when you are addicted to save changes on every line, but you should not import packages without using it in Go anyways. |
@joelsinbarba You can change the formatting tool being used to gofmt. Just add this line to your user settings:
|
If you don't want vs code to change your code. |
Ok, i don't know if this is about this package, but it happened just after i installed it.
So i found the package, and installed dependencies, and restarted the editor(not full, the button restart now). And when i click Ctrl + S the line goes away, but it's perfectly correct line....
I am going to post gif of this, because i don't believe what is happening to me :)
http://imgur.com/ZahFSS2
The text was updated successfully, but these errors were encountered: