Skip to content

Normalize root watcher globs on Windows - #5001

Closed
stroxler wants to merge 1 commit into
mainfrom
export-D121115651
Closed

stroxler wants to merge 1 commit into
mainfrom
export-D121115651

Conversation

@stroxler

Copy link
Copy Markdown
Contributor

Summary:
String-form LSP glob patterns require forward slashes, but root watcher patterns use the platform separator. D120727301 exposed this on Windows when it re-registered a newly added search path and the emitted glob contained backslashes.

Normalize separators in fallback string globs. Keep literal backslashes unchanged on Unix, where they are not path separators.

Differential Revision: D121115651

Summary:
String-form LSP glob patterns require forward slashes, but root watcher patterns use the platform separator. D120727301 exposed this on Windows when it re-registered a newly added search path and the emitted glob contained backslashes.

Normalize separators in fallback string globs. Keep literal backslashes unchanged on Unix, where they are not path separators.

Differential Revision: D121115651
@meta-cla meta-cla Bot added the cla signed label Sep 22, 2026
@meta-codesync

meta-codesync Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

@stroxler has exported this pull request. If you are a Meta employee, you can view the originating Diff in D121115651.

@github-actions

Copy link
Copy Markdown

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@meta-codesync meta-codesync Bot closed this in 3106284 Sep 22, 2026
@meta-codesync meta-codesync Bot added the Merged label Sep 22, 2026
@meta-codesync

meta-codesync Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

This pull request has been merged in 3106284.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant