-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
allow usage of filenamePart
template in custom labels
#213033
base: main
Are you sure you want to change the base?
allow usage of filenamePart
template in custom labels
#213033
Conversation
@microsoft-github-policy-service agree |
c441332
to
3ce177e
Compare
Thank you for creating a PR for this. I think it makes sense to tackle this case. I would propose the following:
Example path:
|
3ce177e
to
ed1e1da
Compare
@benibenj Thanks for the reply and the suggestions! |
Thanks for making the changes! |
This pull requests add to the custom label service the option to accept a new template variable in the patterns, which allows to insert into the label each of the parts of the full file name (including the extension) separated by
.
usage example:
settings.json
:The results would be:
WORKSPACE/units-tests/users.spec.ts
->Test users
WORKSPACE/e2e/users.e2e.spec.ts
->Test e2e users
closes #210166
also fixes some small spelling mistakes.