Use valid nested placeholder snippet example#2197
Use valid nested placeholder snippet example#2197MariaSolOs wants to merge 1 commit intomicrosoft:gh-pagesfrom
Conversation
|
Could you explain how On the other hand I could see how something like Scenario 1: user accepts both placeholders: tabtab Scenario 2: user accepts only the first placeholder, then types something to overwrite the second placeholder: tabfootab Scenario 3: user immediately types something to overwrite the first placeholder (that means that the second tab stop never comes into effect, because it is part of the first placeholder, which was overwritten): footab I don't know about client support for snippets with nested placeholders. But I would say, either the grammar should be fixed to allow Edit: #2194 (comment) shows a good example with a nested placeholder of the form |
|
@jwortmann I don't have a preference over whether we should change the grammar or this example. As mentioned in the PR description #2032 is the alternative that modifies the grammar, this PR is simply the other option. |
Closes #2194
I do want to call out that an alternative solution is to allow nested placeholders to consist of multiple nodes, which would require the grammar change from #2032.