-
Notifications
You must be signed in to change notification settings - Fork 539
Add dictsort filter to @huggingface/jinja #1825
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: xenova <26504141+xenova@users.noreply.github.com>
…prove null handling Co-authored-by: xenova <26504141+xenova@users.noreply.github.com>
Co-authored-by: xenova <26504141+xenova@users.noreply.github.com>
|
@copilot This is a good start, but I'd prefer for the |
Co-authored-by: xenova <26504141+xenova@users.noreply.github.com>
Done! I've moved the
All tests pass and the implementation is cleaner. Commit: 85481b0 Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
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.
Looks great 👍 minor nit.
packages/jinja/src/runtime.ts
Outdated
| const aItem = a.value[by.value === "key" ? 0 : 1]; | ||
| const bItem = b.value[by.value === "key" ? 0 : 1]; |
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.
@copilot we can reuse by.value === "key" ? 0 : 1
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.
Good catch! Extracted the index calculation to a variable. Commit: 9f169f1
Co-authored-by: xenova <26504141+xenova@users.noreply.github.com>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.