vuejs / vetur

Vue tooling for VS Code.
https://vuejs.github.io/vetur/
MIT License
5.75k stars 593 forks source link

When editing same file in different panes, saving one file will cause other pane(s) to scroll to bottom of file #2454

Open mikeerickson opened 3 years ago

mikeerickson commented 3 years ago

Info

Version: 1.52.0-insider Commit: 65f805d98e798b979901b74d4c8810c05455b792 Date: 2020-11-10T09:49:58.382Z Electron: 9.3.3 Chrome: 83.0.4103.122 Node.js: 12.14.1 V8: 8.3.110.13-electron.0 OS: Darwin x64 19.6.0

Problem

As of 0.29.1 when editing the same file in two different panes, when saving in one pane, it scrolls the other pane(s) to the bottom of the file. I have been doing this for a LONG TIME and I have never had Vetur do this before (I just updated to 0.29.1 today)

Reproducible Case

Simple have a file which is big enough to cause scroll and edit and save the file in one pane, the other pane(s) will scroll to the bottom of the file.

yoyo930021 commented 3 years ago

If you try to use stable VSCode version?

yoyo930021 commented 3 years ago

Possibly related: https://github.com/vuejs/vetur/issues/841

mikeerickson commented 3 years ago

Problem still occurs with release version. It could very well be related to something else, but it just started happening yesterday and I have been working on this source file for quite some time?

yoyo930021 commented 3 years ago

Problem still occurs with release version. It could very well be related to something else, but it just started happening yesterday and I have been working on this source file for quite some time?

  1. Do you open format on save?
  2. What is vetur version working well?
mikeerickson commented 3 years ago

So far, it seems v0.31.1 is working correctly. I will report back tomorrow after I have confirmed all is good

mikeerickson commented 3 years ago

Well, the problem still persists. I have had to move to using Prettier for formatting as this is too chaotic to my workflow. I will check back again when I have more time to allocate to assist in tracking down the issue.