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

Variable substitution in snippet preview #181112

Closed
dimateos opened this issue Apr 28, 2023 · 3 comments
Closed

Variable substitution in snippet preview #181112

dimateos opened this issue Apr 28, 2023 · 3 comments
Assignees
Labels
feature-request Request for new features or functionality snippets

Comments

@dimateos
Copy link

You can see a preview of the body in the documentation popup / inline when inserting snippets, but there is no variable substitution:

image

image

The snippet contains $LINE_COMMENT -> // which is correclty added when the snippet is inserted. The variables are just removed like the positional tags. Which IMO should be left as they might be useful for the user to know what the snippet does before insertion.

So maybe an option to show the variables including tags, and then an improvement actually parsing the enviroment variables.

"ts": {
    "prefix": "ts",
    "body": [
        "std::to_string($0) $LINE_COMMENT not previewed",
    ],
    "description": "to std::str",
},

could be considered a visual bug?

@vscodenpa
Copy link

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@vscodenpa
Copy link

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@vscodenpa
Copy link

🙁 In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@vscodenpa vscodenpa closed this as not planned Won't fix, can't repro, duplicate, stale Jun 28, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Aug 12, 2023
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 snippets
Projects
None yet
Development

No branches or pull requests

3 participants