You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happened:
Another plugin changes texts on file save. The change is not reflected in VSCode buffer even though the change has already been written to disk.
What did you expect to happen:
The buffer displayed in VSCode should always be up to date.
How to reproduce it:
Open up a *.go file and install the recommended plugin. The extension will automatically add imports to your source code as you reference different dependencies in your code.
Write a main function with one such dependency
package main
funcmain() {
http.Get("")
}
Save the file with :w and let the extension automatically insert import net/http into your code. Verify this by opening the file with another text editor.
The text was updated successfully, but these errors were encountered:
The same thing happens when you save an improperly formatted or indented file. GoFmt will automatically format your code for you. VSCodeNeovim will briefly flash the correct text, and then resist the change.
I can usually get the text to show correctly using the ex command :e!
The VSCodeVim team prioritizes issues based on reaction count.
Is this a BUG REPORT or FEATURE REQUEST? (choose one): Bug
Environment:
What happened:
Another plugin changes texts on file save. The change is not reflected in VSCode buffer even though the change has already been written to disk.
What did you expect to happen:
The buffer displayed in VSCode should always be up to date.
How to reproduce it:
Open up a *.go file and install the recommended plugin. The extension will automatically add imports to your source code as you reference different dependencies in your code.
Write a main function with one such dependency
Save the file with
:w
and let the extension automatically insertimport net/http
into your code. Verify this by opening the file with another text editor.The text was updated successfully, but these errors were encountered: