Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Handle fsWatch event with accesstime change on mac os #56403

Merged
merged 2 commits into from
Nov 15, 2023

Conversation

sheetalkamat
Copy link
Member

@sheetalkamat sheetalkamat commented Nov 15, 2023

Send change event only if modified time has changed on mac os.
Fixes #52876, #51927

@sheetalkamat
Copy link
Member Author

@typescript-bot pack this

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Nov 15, 2023
@sheetalkamat
Copy link
Member Author

@typescript-bot pack this

@typescript-bot
Copy link
Collaborator

typescript-bot commented Nov 15, 2023

Heya @sheetalkamat, I've started to run the tarball bundle task on this PR at 4671cce. You can monitor the build here.

@typescript-bot
Copy link
Collaborator

typescript-bot commented Nov 15, 2023

Hey @sheetalkamat, I've packed this into an installable tgz. You can install it for testing by referencing it in your package.json like so:

{
    "devDependencies": {
        "typescript": "https://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_apis/build/builds/158595/artifacts?artifactName=tgz&fileId=270C69279D28AEF93D4DDE7977504E51105F0019059428393EC2909809976A2202&fileName=/typescript-5.4.0-insiders.20231115.tgz"
    }
}

and then running npm install.


There is also a playground for this build and an npm module you can use via "typescript": "npm:@typescript-deploys/[email protected]".;

@jakebailey
Copy link
Member

Does Windows need this too? Similar is #52535.

@sheetalkamat
Copy link
Member Author

Not without concrete repro steps.. git diff on windows doesnt trigger refresh..

Copy link
Member

@jakebailey jakebailey left a comment

Choose a reason for hiding this comment

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

LGTM though I do kinda wonder if asking for the mtime touches atime, thus causing an event itself... But surely not given the user reported all was well.

Copy link
Member Author

@sheetalkamat sheetalkamat left a comment

Choose a reason for hiding this comment

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

fixing PR review comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Watch mode: git diff on macOS triggers rebuild
3 participants