Skip to content
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

[Feature Request] snippet support RANDOM #80297

Closed
seognil opened this issue Sep 4, 2019 · 5 comments · Fixed by #82529
Closed

[Feature Request] snippet support RANDOM #80297

seognil opened this issue Sep 4, 2019 · 5 comments · Fixed by #82529
Assignees
Labels
feature-request Request for new features or functionality good first issue Issues identified as good for first-time contributors help wanted Issues identified as good community contribution opportunities snippets

Comments

@seognil
Copy link

seognil commented Sep 4, 2019

[use case]
console.log('#45dlk5', $1)
generate a simple random string as a quick debug flag

[feature request]
add a $RANDOM varible to snippet
or support JS expression as ES6 did
e.g. `${Math.random().toString(36).slice(-6)}` => '45dlk5'

@jrieken jrieken added feature-request Request for new features or functionality help wanted Issues identified as good community contribution opportunities snippets labels Sep 5, 2019
@skprabhanjan
Copy link
Contributor

@jrieken , I can take this up but need some starter and code pointers for this :)
I just need some more understanding as we can do something like this
console.log(${Math.random().toString(36).slice(-6)},$1);

@jrieken jrieken added the good first issue Issues identified as good for first-time contributors label Oct 7, 2019
@moki298
Copy link

moki298 commented Oct 8, 2019

Is this still open? Can I take this?

@jrieken
Copy link
Member

jrieken commented Oct 8, 2019

Go for it. Code pointer:

export class TimeBasedVariableResolver implements VariableResolver {

@alk4do

This comment has been minimized.

@alk4do

This comment has been minimized.

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality good first issue Issues identified as good for first-time contributors help wanted Issues identified as good community contribution opportunities snippets
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants