Repository navigation
Fix pip-requirements filename patterns - #18487
Brett Cannon (brettcannon) merged 1 commit into
Conversation
ab4238a to
2719efe
Compare
| "**/*requirements{/**,*}.{txt,in}", | ||
| "**/*constraints{/**,*}.txt" |
There was a problem hiding this comment.
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.
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 Brett Cannon (@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.
Typo here:
contstraints -> constraints
There was a problem hiding this comment.
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.