-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix pip-requirements filename patterns #18487
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
Fix pip-requirements filename patterns #18487
Conversation
ab4238a to
2719efe
Compare
package.json
Outdated
| "**/*requirements{/**,*}.{txt,in}", | ||
| "**/*constraints{/**,*}.txt" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have to be careful to not over-fit on file patterns as we don't want to try and highlight files that are not requirements files.
| "**/*requirements{/**,*}.{txt,in}", | |
| "**/*constraints{/**,*}.txt" | |
| "*-requirements.{txt, in}", | |
| "*-contstraints.txt", | |
| "requirements-*.{txt, in}", | |
| "constraints-*.txt", | |
| "requirements/*.{txt,in}", | |
| "constraints/*.txt" |
Let us know if this still highlights files as expected for you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made a counter suggestion.
|
@batisteo any chance you can look at my proposed changes this week? We are feature freezing at the end of the week. |
2719efe to
47eebb6
Compare
|
Thanks @brettcannon for the heads up! What do you think? |
|
@batisteo thanks! |
| "requirements-*.txt" | ||
| ], | ||
| "**/*-requirements.{txt, in}", | ||
| "**/*-contstraints.txt", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo here:
contstraints -> constraints
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in #18646, thanks for bringing to our attention.
…aints/` sub-directories (microsoft/vscode-python#18487)
This fix is for projects that uses a
requirementsfolder with files namedbase.txt,production.txtand such.Fixes #18498.