Repository navigation
Support the ReScript 13 flat build layout - #1195
fhammerschmidt wants to merge 4 commits into
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d96ceb7628
ℹ️ 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".
| lock.endsWith("/watch.lock") | ||
| ? fs.readFileSync(lockFilePath, "utf8").trim() === String(proc.pid) |
There was a problem hiding this comment.
Clean up watch locks owned by the wrapper's child process
For legacy-layout compilers that use lib/watch.lock, such as ReScript 12.3.1, startBuildWatcher still launches the JavaScript wrapper rather than the native compiler. The lock therefore contains the native child's PID, not proc.pid, so this comparison prevents cleanup after the process group is terminated. Since openedFile now treats this lock's existence as evidence of a running watcher, reopening the project suppresses the start-build prompt even though no watcher is running, leaving saved diagnostics stale. Track the actual lock-owning child or launch the native compiler for these versions too, while retaining the protection against deleting another watcher's lock.
Useful? React with 👍 / 👎.
Fixes #1194.
Changes
lib/rescript. Keep the prior layout for v12 and earlier v13 previews.Testing
Helper.va→value,String.len→length).masterand build output inlib/rescript, typing"lol".lensuggested->String.lengthwith thestring => intsignature and documentation. The same VSIX also showedString.lengthautocomplete on alpha.7 with the legacylib/bslayout.