From 9fde5dd45e2069142c91b9e1a8080fe18bcd90c3 Mon Sep 17 00:00:00 2001 From: Miguel Angel Simon Sierra Date: Sat, 26 Sep 2026 21:21:22 -0400 Subject: [PATCH] refactor(studio): cut the dev watcher project-id comment to one line --- packages/studio/vite.config.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/studio/vite.config.ts b/packages/studio/vite.config.ts index e56fef76a0..09263b3848 100644 --- a/packages/studio/vite.config.ts +++ b/packages/studio/vite.config.ts @@ -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}`);