Skip to content

Conversation

@cristianoc
Copy link
Collaborator

@cristianoc cristianoc commented Jan 14, 2026

Fix monorepo build detection: watch only root .compiler.log; run reanalyze from root

  • move logic for finding binaries to be shared between server and client
  • Server: restrict .compiler.log watching to ROOT/lib/bs/.compiler.log per workspace folder to avoid event floods from packages/** and node_modules/**.
  • Client: Start Code Analysis now uses shared logic to locate the binary, and starts the analysis from outside "node_modules" where the binary is

…alyze from workspace root

- Server: restrict .compiler.log watching to ROOT/lib/bs/.compiler.log per workspace folder to avoid event floods from packages/** and node_modules/**.\n- Server: fix Start Build spawning for v12 layouts by preferring rescript.exe and falling back to rescript (also respects rescript.settings.binaryPath).\n- Client: anchor Start Code Analysis to the VSCode workspace folder root rather than the active file directory.\n- Client: resolve code-analysis binary relative to the chosen cwd (workspace root) to avoid subpackage-anchored tool lookup.\n\nFiles: server/src/server.ts, client/src/extension.ts, client/src/commands/code_analysis.ts
@cristianoc cristianoc requested a review from zth January 14, 2026 11:14
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: adbe7c6010

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@cristianoc cristianoc requested a review from cknitt January 15, 2026 07:26
@cristianoc cristianoc requested a review from cknitt January 15, 2026 16:50
@cristianoc
Copy link
Collaborator Author

@cknitt changed the PR to move the logic which finds binaries to be shared between client and server.
We find the root of the project based on where the binary is found. So whatever folder the workspace is started from does not matter as long as it is inside the monorepo.

@cristianoc cristianoc force-pushed the fix/monorepo-root-compilerlog-watch branch from 5c6b12d to bcbe65a Compare January 15, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants