-
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
Snippet transforms don't work with choice placeholders #57052
Comments
(Experimental duplicate detection) |
Yeah, that's the design and I don't think that Textmate snippets support that. |
Ahh, ok. If there's a design reason for disallowing placeholders with choice values to be used with transforms, then perhaps the documentation should reflect that? |
We have this document (and a grammar definition): https://code.visualstudio.com/docs/editor/userdefinedsnippets#_grammar |
This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider. If you wonder what we are up to, please see our roadmap and issue reporting guidelines. Thanks for your understanding and happy coding! |
Come-on... At the very least the documentation needs to be updated to reflect this limitation. Wasted a lot of time trying to figure this out. |
Issue Type: Bug
Snippet placeholder transforms do not work when the placeholder has choices instead of a default value.
Reproduce with this snippet:
Expanding the snippet with
that
entered for both placeholders results in:VS Code version: Code - Insiders 1.27.0-insider (e0a6826, 2018-08-22T05:12:41.569Z)
OS version: Darwin x64 16.7.0
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Extensions (18)
The text was updated successfully, but these errors were encountered: