{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/43643","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/43643/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/43643/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/43643/events","html_url":"https://github.com/Microsoft/vscode/issues/43643","id":297033141,"number":43643,"title":"SnippetString doesn't support choices","user":{"login":"DanTup","id":1078012,"avatar_url":"https://avatars2.githubusercontent.com/u/1078012?v=4","gravatar_id":"","url":"https://api.github.com/users/DanTup","html_url":"https://github.com/DanTup","followers_url":"https://api.github.com/users/DanTup/followers","following_url":"https://api.github.com/users/DanTup/following{/other_user}","gists_url":"https://api.github.com/users/DanTup/gists{/gist_id}","starred_url":"https://api.github.com/users/DanTup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanTup/subscriptions","organizations_url":"https://api.github.com/users/DanTup/orgs","repos_url":"https://api.github.com/users/DanTup/repos","events_url":"https://api.github.com/users/DanTup/events{/privacy}","received_events_url":"https://api.github.com/users/DanTup/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-14T09:52:40Z","updated_at":"2018-02-14T09:52:40Z","closed_at":null,"author_association":"NONE","body":"In the snippet docs there's syntax for adding choices for placeholders:\r\n\r\n> # Choice\r\n> Placeholders can have choices as values. The syntax is a comma separated enumeration of values, enclosed with the pipe-character, for example `${1|one,two,three|}`. When the snippet is inserted and the placeholder selected, choices will prompt the user to pick one of the values.\r\n\r\nCurrently the `SnippetString` class has methods for `appendPlaceholder`, `appendVariable`, etc. but there isn't an option for choices. We can build these manually, but it'd be better if we could stick to a nice API."}}
{"actor":{"display_login":"DanTup"}}