Skip to content

Commit b3a4f45

Browse files
chore: minimal current project listener
1 parent 58f1d28 commit b3a4f45

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/frontend/src/views/App.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,12 @@ onMounted(() => {
248248
scanSummary.value = summary;
249249
});
250250
251+
// Listen for project changes and automatically refresh
252+
sdk.projects.onCurrentChanged(() => {
253+
console.log("Project changed, refreshing workspace files...");
254+
loadWorkspaceFiles();
255+
});
256+
251257
loadWorkspaceFiles();
252258
});
253259
</script>

0 commit comments

Comments
 (0)