refactor(studio): cut the dev watcher project-id comment to one line

This commit is contained in:
Miguel Angel Simon Sierra
2026-09-26 21:21:22 -04:00
parent f3f363b159
commit 9fde5dd45e
+1 -5
View File
@@ -258,11 +258,7 @@ function devProjectApi(): Plugin {
!filePath.endsWith(".json")
)
return;
// Mirrors the CLI host's `project.id` field on the same event — see its
// doc comment for why a stale tab needs this to ignore another
// project's saves on a shared connection. This host is multi-project
// (any dir under `dataDir` resolves), so unlike the CLI host it can't
// assume one fixed id.
// The project id lets a stale tab ignore another project's saves, as on the CLI host.
const projectId = projectIdForWatchedFile(dataDir, filePath);
if (!projectId) return;
console.log(`[Studio] File changed: ${filePath}`);