{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/1527","repository_url":"https://api.github.com/repos/Microsoft/visualfsharp","labels_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/1527/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/1527/comments","events_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/1527/events","html_url":"https://github.com/Microsoft/visualfsharp/pull/1527","id":175858862,"number":1527,"title":"Add simple snippet support for VS","user":{"login":"brettfo","id":926281,"avatar_url":"https://avatars.githubusercontent.com/u/926281?v=3","gravatar_id":"","url":"https://api.github.com/users/brettfo","html_url":"https://github.com/brettfo","followers_url":"https://api.github.com/users/brettfo/followers","following_url":"https://api.github.com/users/brettfo/following{/other_user}","gists_url":"https://api.github.com/users/brettfo/gists{/gist_id}","starred_url":"https://api.github.com/users/brettfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettfo/subscriptions","organizations_url":"https://api.github.com/users/brettfo/orgs","repos_url":"https://api.github.com/users/brettfo/repos","events_url":"https://api.github.com/users/brettfo/events{/privacy}","received_events_url":"https://api.github.com/users/brettfo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/visualfsharp/labels/cla-not-required","name":"cla-not-required","color":"90EE90"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-08T20:41:15Z","updated_at":"2016-09-20T23:36:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Microsoft/visualfsharp/pulls/1527","html_url":"https://github.com/Microsoft/visualfsharp/pull/1527","diff_url":"https://github.com/Microsoft/visualfsharp/pull/1527.diff","patch_url":"https://github.com/Microsoft/visualfsharp/pull/1527.patch"},"body":"## This is meant to start the discussion for enabling F# snippets in the VS IDE.\r\n\r\n### What's included in this PR:\r\n\r\n- Snippet's can be inserted with `Edit -> Insert Snippet`, the `Ctrl+K, Ctrl+X` keyboard shortcut, or the `Edit.InsertSnippet` DTE command.\r\n- The snippets are packed inside the VSIX to enable F5 testing on developer boxes.\r\n\r\n### Shortcomings of these changes and the next steps:\r\n\r\n- Only one snippet is included for the `match` expression.  This was added to lay the groundwork for others to add many more snippets with relatively few changes.  E.g., to add a new snippet, simply add a `.snippet` XML file next to `match.snippet` and update `FSharpSnippets.targets` and `snippets.swr`.\r\n- Multi-line snippets aren't properly formatted/indented.  The fix for this is to (1) enable the `Preferences.EnableFormatSelection` option, and (2) implement [`ReformatSpan()`](https://github.com/Microsoft/visualfsharp/blob/master/vsintegration/src/FSharp.LanguageService.Base/Source.cs#L622).\r\n- No tests were added.\r\n\r\nAddresses #1498.\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/comments/248467992","html_url":"https://github.com/Microsoft/visualfsharp/pull/1527#issuecomment-248467992","issue_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/1527","id":248467992,"user":{"login":"brettfo","id":926281,"avatar_url":"https://avatars.githubusercontent.com/u/926281?v=3","gravatar_id":"","url":"https://api.github.com/users/brettfo","html_url":"https://github.com/brettfo","followers_url":"https://api.github.com/users/brettfo/followers","following_url":"https://api.github.com/users/brettfo/following{/other_user}","gists_url":"https://api.github.com/users/brettfo/gists{/gist_id}","starred_url":"https://api.github.com/users/brettfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettfo/subscriptions","organizations_url":"https://api.github.com/users/brettfo/orgs","repos_url":"https://api.github.com/users/brettfo/repos","events_url":"https://api.github.com/users/brettfo/events{/privacy}","received_events_url":"https://api.github.com/users/brettfo/received_events","type":"User","site_admin":false},"created_at":"2016-09-20T23:36:59Z","updated_at":"2016-09-20T23:36:59Z","body":"@OmarTawfik: I've removed the locale-specific stuff in the latest commit."}}
{"actor":{"display_login":"brettfo"}}