Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: watcher - log last changed file #1447

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

AlliBalliBaba
Copy link
Collaborator

This PR adds the suggestion from #1443 and logs the name of the file that triggered a watcher reload.

@@ -37,7 +37,7 @@ func DebugState() FrankenPHPDebugState {
func threadDebugState(thread *phpThread) ThreadDebugState {
return ThreadDebugState{
Index: thread.threadIndex,
Name: thread.handler.name(),
Name: thread.name(),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This also fixes a rare race condition with the debug state that I noticed during testing.

@AlliBalliBaba AlliBalliBaba changed the title feat: watcher - logs last changed file feat: watcher - log last changed file Mar 16, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants