We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a44de9e commit dc02f75Copy full SHA for dc02f75
1 file changed
src/ide/ui.ts
@@ -261,7 +261,7 @@ async function initProject() {
261
current_project.callbackBuildStatus = (busy: boolean) => {
262
setBusyStatus(busy);
263
};
264
- // Update views when file contents change.
+ // Update file views when file contents change.
265
current_project.onFileChanged = (path: string, data: FileData) => {
266
var wnd = projectWindows.id2window[path];
267
if (wnd) {
@@ -273,6 +273,11 @@ async function initProject() {
273
console.warn('onFileChanged: unknown view or data type');
274
}
275
276
+ // Also refresh the asset editor if it's the active view.
277
+ var assetWnd = projectWindows.id2window['#asseteditor'];
278
+ if (assetWnd && assetWnd === projectWindows.getActive()) {
279
+ assetWnd.refresh(true);
280
+ }
281
282
283
0 commit comments