-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Add time variables for snippets #41653
Add time variables for snippets #41653
Conversation
|
||
resolve(variable: Variable): string { | ||
const { name } = variable; | ||
const zeroPad = (n: string): string => n.length < 2 ? `0${n}` : n; |
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.
better use the existing util from base/common/strings#pad
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.
Didn't know about it
Would you might adding a test? At least for manifesting the names of the those variables? Maybe have your code so that the date to be used is an optional ctor-argument. Thanks already. |
Travis-CI build stuck > 10 hours. |
lgtm. Thanks |
has this been released into a build yet? do I use it like |
Fixes #41631
@jrieken