{"action":"closed","issue":{"url":"https://api.github.com/repos/fsprojects/VisualFSharpPowerTools/issues/967","labels_url":"https://api.github.com/repos/fsprojects/VisualFSharpPowerTools/issues/967/labels{/name}","comments_url":"https://api.github.com/repos/fsprojects/VisualFSharpPowerTools/issues/967/comments","events_url":"https://api.github.com/repos/fsprojects/VisualFSharpPowerTools/issues/967/events","html_url":"https://github.com/fsprojects/VisualFSharpPowerTools/issues/967","id":77780663,"number":967,"title":"Format selection script.fsx, cursor goes to end of file","user":{"login":"philderbeast","id":633283,"avatar_url":"https://avatars.githubusercontent.com/u/633283?v=3","gravatar_id":"","url":"https://api.github.com/users/philderbeast","html_url":"https://github.com/philderbeast","followers_url":"https://api.github.com/users/philderbeast/followers","following_url":"https://api.github.com/users/philderbeast/following{/other_user}","gists_url":"https://api.github.com/users/philderbeast/gists{/gist_id}","starred_url":"https://api.github.com/users/philderbeast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philderbeast/subscriptions","organizations_url":"https://api.github.com/users/philderbeast/orgs","repos_url":"https://api.github.com/users/philderbeast/repos","events_url":"https://api.github.com/users/philderbeast/events{/privacy}","received_events_url":"https://api.github.com/users/philderbeast/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fsprojects/VisualFSharpPowerTools/labels/minor%20bug","name":"minor bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/fsprojects/VisualFSharpPowerTools/labels/no-repro","name":"no-repro","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-18T19:44:43Z","updated_at":"2015-07-14T18:54:56Z","closed_at":"2015-07-14T18:54:56Z","body":"Moved from https://github.com/Microsoft/visualfsharp/issues/455\r\n\r\nIn Visual Studio 2015 CTP, open an fsharp *.fsx script file and choose Edit|Advanced|Format Selection. If the code is reformatted then the cursor jumps to the end of the file after the reformatting. I would have expected the cursor to stay on the same line.\r\n\r\nI tested this with the banana pyjamas loop in the following file at rev d3d937ed12c8d091f984870a9b7ee3c4295cbee4 ...\r\n\r\nhttps://github.com/BlockScope/ExpertFSharp/blob/master/04Imperative/Script.fsx"}}