AnalyticalGraphicsInc / gltf-vscode

This is an extension for Visual Studio Code to add support for editing glTF files.
Apache License 2.0
460 stars 63 forks source link

Viewer Extension crashes when file is changed externally #175

Open hybridherbst opened 4 years ago

hybridherbst commented 4 years ago

Every time I overwrite the GLTF + accompanying GLB and texture files from an external application, the GLTF properly updates in Code but the Extension Host crashes. I need to restart the extension host and click "preview" again to get the model preview.

Expected: external update and re-focussing Code updates the preview Actual: eternal update and re-focussing Code crashes the extension host

emackey commented 4 years ago

I wonder if too many auto-updates are coming through at once. Maybe adding a debounce to the updater would calm things down.

hybridherbst commented 4 years ago

Might well be, I think when I export basically all files change at once (gltf, bin, all textures), or in very short succession after each other (as the files are written).