vitaliymaz / vscode-svg-previewer

Vscode SVG Previewer
22 stars 4 forks source link

Request: Autoreload / refresh / watch #79

Open mawid6 opened 8 months ago

mawid6 commented 8 months ago

Hello!

I am struggling to get my flow to work in a good way. I would like to be able to have a preview of a file open and have it reload when the file is changed.

BR! /marcus

fvsch commented 1 month ago

In my usage, the preview does update when the file is changed.

At least when using this extension with “Open Preview to the Side”. Changes in the editor buffer are reflected instantly in the preview.

Sometimes it does get stuck (not syncing with the editor anymore), though I'm not sure when. Might be when switching files, closing-and-reopening, something like that.

mawid6 commented 1 month ago

Hi @fvsch! Good to know, but I think you are talking about another use case? You write:

Changes in the editor buffer are reflected instantly in the preview.

Seems you mean previewing an svg that you are editing.

My use case is a "Autoreload/refresh/watch" of a file on disk - so, to open a preview of an svg file on disk. Not editing the svg in vs code.

So I mean for it to watch changes to an svg file, and reload the preview from the file when it changes.