Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSCodeNeovim unaware of text added from other plugins #12

Open
borring opened this issue Mar 5, 2018 · 1 comment
Open

VSCodeNeovim unaware of text added from other plugins #12

borring opened this issue Mar 5, 2018 · 1 comment

Comments

@borring
Copy link

borring commented Mar 5, 2018

  • Click thumbs-up 👍 on this issue if you want it!
  • Click confused 😕 on this issue if not having it makes VSCodeVim unusable.

The VSCodeVim team prioritizes issues based on reaction count.


Is this a BUG REPORT or FEATURE REQUEST? (choose one): Bug

Environment:

  • VSCode Version: 1.20.1
  • VsCodeVim Version: 26d0e85
  • OS: Fedora 27

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

func main() {
    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.

@borring
Copy link
Author

borring commented Mar 7, 2018

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant