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

Undo after save on JSON files navigates to end of file #71432

Closed
StephenWeatherford opened this issue Mar 29, 2019 · 9 comments
Closed

Undo after save on JSON files navigates to end of file #71432

StephenWeatherford opened this issue Mar 29, 2019 · 9 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@StephenWeatherford
Copy link

Issue Type: Bug

Does not happen in stable. Still repros if all extensions are disabled.

  1. Open a JSON file
  2. Make any change
  3. Save
  4. Undo
    !) cursor navigates to the bottom of the file, gets extremely annoying

weird undo

VS Code version: Code - Insiders 1.33.0-insider (f5044f0, 2019-03-28T16:20:44.233Z)
OS version: Darwin x64 18.2.0

System Info
Item Value
CPUs Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz (8 x 2500)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 3, 3, 3
Memory (System) 16.00GB (0.07GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (9)
Extension Author (truncated) Version
tslint eg2 1.0.43
vscode-antlr4 mik 2.1.1
vscode-azurestorage ms- 0.7.0
vscode-cosmosdb ms- 0.10.0
azure-account ms- 0.8.0
csharp ms- 1.18.0
vscode-typescript-tslint-plugin ms- 1.0.0
azurerm-vscode-tools msa 0.5.0
vscode-docker Pet 0.6.1
@vscodebot
Copy link

vscodebot bot commented Mar 29, 2019

@alexdima
Copy link
Member

alexdima commented Apr 1, 2019

@StephenWeatherford Can you please share your settings? I cannot reproduce:

Kapture 2019-04-01 at 8 49 51

@alexdima alexdima added the info-needed Issue requires more information from poster label Apr 1, 2019
@StephenWeatherford
Copy link
Author

Okay, so it repros only when this setting is on:

"editor.formatOnSave": true,

It also doesn't seem to repro with all editors. Try deleting one or more characters out of any string value, then save and undo.

@alexdima
Copy link
Member

alexdima commented Apr 2, 2019

@StephenWeatherford Still no luck in reproducing. I'm using "editor.formatOnSave": true and deleting characters in a string value, then saving, then undoing:

Kapture 2019-04-02 at 12 21 32

@StephenWeatherford
Copy link
Author

I still see this, stable and insiders, Mac and Windows. What do you need from me? It appears that there's an extra item pushed onto the undo stack that shouldn't be there.

@alexdima
Copy link
Member

alexdima commented Apr 9, 2019

@jrieken You mentioned something today about formatting on save not picking up the editor in some cases ?

@jrieken
Copy link
Member

jrieken commented Apr 9, 2019

@StephenWeatherford This might be #71707. Please try to reproduce with next (tomorrows) insiders build: https://code.visualstudio.com/insiders/

@jrieken jrieken closed this as completed Apr 30, 2019
@jrieken
Copy link
Member

jrieken commented Apr 30, 2019

optimistically closing as dupe

@StephenWeatherford
Copy link
Author

Does seem to be fixed, thanks!

@vscodebot vscodebot bot locked and limited conversation to collaborators Jun 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants