Hello @Anthony
Is it possible to have the Preview window vertical scroll position sync to the endpoint being worked on in the Editor?
For me, whenever the Preview window refreshes it goes to the top.
VSCode, Windows 10, v4.35.0
Hello @Anthony
Is it possible to have the Preview window vertical scroll position sync to the endpoint being worked on in the Editor?
For me, whenever the Preview window refreshes it goes to the top.
VSCode, Windows 10, v4.35.0
Hi Steve,
Thereās an existing feature request to sync the doc preview with the API spec. Checking to see if its feasibleā¦
About seeing the preview window jump to the top on auto refresh, I checked on Windows and Mac with the same extension version and not seeing that behavior. When I make a change and the preview refreshes, it doesnāt go to the top.
Iāve searched the VSCode settings but didnāt find anything that causes the preview to autoscroll to the top. Possibly interference from another VSCode extension youāre using?
Apologies @Anthony , I did a search but couldnāt see any feature request for it.
Iāve checked the ājump to topā behaviour and I can reproduce it after a machine restart overnight.
The selected endpoint remains āopenā / selected, but I have to scroll back down the page to see it.
I donāt get the behaviour in the video, after an edit it jumps to the top of the page.
When I have time, Iāll disable some other extensions and provide an update.
Thanks
Disabled all Extensions except RedHat YAML and OpenAPI (Swagger), restarted VSCode.
I still get the same behaviour.
Is there any output from the Preview that I can capture?
Does it occur for every OAS file?
Try it with this sample file to check if the file contents are a factor:
Toggle open the Developer Tools in VSCode, clear the console and then reproduce the issue. See if there are any issues reported in the console.
Using that example yaml, it works fine. No jumps to the top.
Iāll see if I can reproduce with some generic yaml with no sensitive info in.