Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

cursor jumping to top of file #1389

Closed
tsraza opened this issue Dec 2, 2017 · 4 comments
Closed

cursor jumping to top of file #1389

tsraza opened this issue Dec 2, 2017 · 4 comments

Comments

@tsraza
Copy link

tsraza commented Dec 2, 2017

On save, the cursor jumps to Ln 1, Col 1 of the file.

Version 0.6.69 - 27th November, 2017

@rgynn
Copy link

rgynn commented Dec 2, 2017

Getting the same on Windows. I'm guessing it's go fmt that's messing things up on save.

Version 1.18.1
Commit 929bacba01ef658b873545e26034d1a8067445e9
Date 2017-11-16T18:32:36.023Z
Shell 1.7.9
Renderer 58.0.3029.110
Node 7.9.0
Architecture x64

@ramya-rao-a
Copy link
Contributor

This is being tracked in #1346

Workaround until we find a fix for this is to disable the format on save feature. Add the below in your settings
"go.formatOnSave": false"

@ramya-rao-a
Copy link
Contributor

@tsraza @hajhatten You can follow the steps in #1346 (comment) to get the fix for this issue before the next udpate

@ramya-rao-a
Copy link
Contributor

ramya-rao-a commented Dec 19, 2017

The latest update to the Go extension (0.6.70) has the fix for this issue

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants