{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/5366","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/5366/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/5366/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/5366/events","html_url":"https://github.com/dotnet/roslyn/issues/5366","id":107550010,"number":5366,"title":"Pressing Enter after generating a snippet goes to the wrong location","user":{"login":"dpoeschl","id":235241,"avatar_url":"https://avatars.githubusercontent.com/u/235241?v=3","gravatar_id":"","url":"https://api.github.com/users/dpoeschl","html_url":"https://github.com/dpoeschl","followers_url":"https://api.github.com/users/dpoeschl/followers","following_url":"https://api.github.com/users/dpoeschl/following{/other_user}","gists_url":"https://api.github.com/users/dpoeschl/gists{/gist_id}","starred_url":"https://api.github.com/users/dpoeschl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpoeschl/subscriptions","organizations_url":"https://api.github.com/users/dpoeschl/orgs","repos_url":"https://api.github.com/users/dpoeschl/repos","events_url":"https://api.github.com/users/dpoeschl/events{/privacy}","received_events_url":"https://api.github.com/users/dpoeschl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-IDE","name":"Area-IDE","color":"5319e7"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Bug","name":"Bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"dpoeschl","id":235241,"avatar_url":"https://avatars.githubusercontent.com/u/235241?v=3","gravatar_id":"","url":"https://api.github.com/users/dpoeschl","html_url":"https://github.com/dpoeschl","followers_url":"https://api.github.com/users/dpoeschl/followers","following_url":"https://api.github.com/users/dpoeschl/following{/other_user}","gists_url":"https://api.github.com/users/dpoeschl/gists{/gist_id}","starred_url":"https://api.github.com/users/dpoeschl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpoeschl/subscriptions","organizations_url":"https://api.github.com/users/dpoeschl/orgs","repos_url":"https://api.github.com/users/dpoeschl/repos","events_url":"https://api.github.com/users/dpoeschl/events{/privacy}","received_events_url":"https://api.github.com/users/dpoeschl/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/dotnet/roslyn/milestones/4","html_url":"https://github.com/dotnet/roslyn/milestones/1.2","labels_url":"https://api.github.com/repos/dotnet/roslyn/milestones/4/labels","id":937402,"number":4,"title":"1.2","description":"This is our 1.2 Milestone.\r\n\r\n<!---\r\n@huboard:{\"order\":2.0}\r\n-->\r\n","creator":{"login":"jaredpar","id":146967,"avatar_url":"https://avatars.githubusercontent.com/u/146967?v=3","gravatar_id":"","url":"https://api.github.com/users/jaredpar","html_url":"https://github.com/jaredpar","followers_url":"https://api.github.com/users/jaredpar/followers","following_url":"https://api.github.com/users/jaredpar/following{/other_user}","gists_url":"https://api.github.com/users/jaredpar/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredpar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredpar/subscriptions","organizations_url":"https://api.github.com/users/jaredpar/orgs","repos_url":"https://api.github.com/users/jaredpar/repos","events_url":"https://api.github.com/users/jaredpar/events{/privacy}","received_events_url":"https://api.github.com/users/jaredpar/received_events","type":"User","site_admin":false},"open_issues":336,"closed_issues":11,"state":"open","created_at":"2015-01-15T20:48:55Z","updated_at":"2015-10-02T19:56:57Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-09-21T16:31:13Z","updated_at":"2015-10-02T20:37:34Z","closed_at":null,"body":"Ported from internal bug 145284\r\n\r\n1. Type if followed by <tab><tab> to generate an if block \r\n2. Don't type anything, but click somewhere else in the source code \r\n3. Press Enter \r\n\r\n**Expected**: The snippet session is complete and the Enter inserts a newline where the caret was positioned.\r\n**Actual**: The cursor is moved back inside the generated if block, to the snippet's ```$end$``` position.\r\n\r\nWe should only honor the ```$end$``` location if the caret position is within a snippet field (or maybe within the larger snippet span, we should check the exact Visual Studio 2013 behavior)."},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/145148705","html_url":"https://github.com/dotnet/roslyn/issues/5366#issuecomment-145148705","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/5366","id":145148705,"user":{"login":"balajikris","id":4213867,"avatar_url":"https://avatars.githubusercontent.com/u/4213867?v=3","gravatar_id":"","url":"https://api.github.com/users/balajikris","html_url":"https://github.com/balajikris","followers_url":"https://api.github.com/users/balajikris/followers","following_url":"https://api.github.com/users/balajikris/following{/other_user}","gists_url":"https://api.github.com/users/balajikris/gists{/gist_id}","starred_url":"https://api.github.com/users/balajikris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balajikris/subscriptions","organizations_url":"https://api.github.com/users/balajikris/orgs","repos_url":"https://api.github.com/users/balajikris/repos","events_url":"https://api.github.com/users/balajikris/events{/privacy}","received_events_url":"https://api.github.com/users/balajikris/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T20:37:34Z","updated_at":"2015-10-02T20:37:34Z","body":"Also look at internal bug 114668 (vs-feedback item 384486) while closing the bug. Essentially the repro there is typing code instead of Enter at step 3 in the repro listed above."}}