{"action":"created","issue":{"url":"https://api.github.com/repos/PowerShell/vscode-powershell/issues/1507","repository_url":"https://api.github.com/repos/PowerShell/vscode-powershell","labels_url":"https://api.github.com/repos/PowerShell/vscode-powershell/issues/1507/labels{/name}","comments_url":"https://api.github.com/repos/PowerShell/vscode-powershell/issues/1507/comments","events_url":"https://api.github.com/repos/PowerShell/vscode-powershell/issues/1507/events","html_url":"https://github.com/PowerShell/vscode-powershell/issues/1507","id":356021336,"node_id":"MDU6SXNzdWUzNTYwMjEzMzY=","number":1507,"title":"Code formatting causes cursor to jump to EOF","user":{"login":"Cirzen","id":13346199,"node_id":"MDQ6VXNlcjEzMzQ2MTk5","avatar_url":"https://avatars3.githubusercontent.com/u/13346199?v=4","gravatar_id":"","url":"https://api.github.com/users/Cirzen","html_url":"https://github.com/Cirzen","followers_url":"https://api.github.com/users/Cirzen/followers","following_url":"https://api.github.com/users/Cirzen/following{/other_user}","gists_url":"https://api.github.com/users/Cirzen/gists{/gist_id}","starred_url":"https://api.github.com/users/Cirzen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cirzen/subscriptions","organizations_url":"https://api.github.com/users/Cirzen/orgs","repos_url":"https://api.github.com/users/Cirzen/repos","events_url":"https://api.github.com/users/Cirzen/events{/privacy}","received_events_url":"https://api.github.com/users/Cirzen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-08-31T15:14:24Z","updated_at":"2018-10-26T22:47:48Z","closed_at":null,"author_association":"NONE","body":"I have my formatting style set to Allman. If I start typing something, e.g. a function, or a process block and put the open-brace at the end of the line, when the formatter kicks in and moves it to the next line, the cursor also jumps to the last line of the file.\r\nHere's a screen grab of what happens.\r\n![formatter](https://user-images.githubusercontent.com/13346199/44920339-94706300-ad37-11e8-9b66-d20c95c4247a.gif)\r\n\r\nDisabling the add-in resolves the issue\r\n\r\n### System Details\r\n\r\n- Operating system name and version: Win 10 1709\r\n- VS Code version: 1.26.1\r\n493869ee8e8a846b0855873886fc79d480d342de\r\nx64\r\n- PowerShell extension version: 1.8.3\r\n- Output from `$PSVersionTable`:\r\nName                           Value\r\n----                           -----\r\nPSVersion                      6.1.0-preview.1\r\nPSEdition                      Core\r\nGitCommitId                    v6.1.0-preview.1\r\nOS                             Microsoft Windows 10.0.16299\r\nPlatform                       Win32NT\r\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}\r\nPSRemotingProtocolVersion      2.3\r\nSerializationVersion           1.1.0.1\r\nWSManStackVersion              3.0\r\n\r\n### Issue Description\r\n\r\nI am experiencing a problem with...\r\n\r\n### Attached Logs\r\n[EditorServices.zip](https://github.com/PowerShell/vscode-powershell/files/2340597/EditorServices.zip)\r\nFollow the instructions in the [README](https://github.com/PowerShell/vscode-powershell#reporting-problems\r\n\r\n)\r\nabout capturing and sending logs.\r\n"},"comment":{"url":"https://api.github.com/repos/PowerShell/vscode-powershell/issues/comments/433562987","html_url":"https://github.com/PowerShell/vscode-powershell/issues/1507#issuecomment-433562987","issue_url":"https://api.github.com/repos/PowerShell/vscode-powershell/issues/1507","id":433562987,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzU2Mjk4Nw==","user":{"login":"ThubLives","id":13872430,"node_id":"MDQ6VXNlcjEzODcyNDMw","avatar_url":"https://avatars3.githubusercontent.com/u/13872430?v=4","gravatar_id":"","url":"https://api.github.com/users/ThubLives","html_url":"https://github.com/ThubLives","followers_url":"https://api.github.com/users/ThubLives/followers","following_url":"https://api.github.com/users/ThubLives/following{/other_user}","gists_url":"https://api.github.com/users/ThubLives/gists{/gist_id}","starred_url":"https://api.github.com/users/ThubLives/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThubLives/subscriptions","organizations_url":"https://api.github.com/users/ThubLives/orgs","repos_url":"https://api.github.com/users/ThubLives/repos","events_url":"https://api.github.com/users/ThubLives/events{/privacy}","received_events_url":"https://api.github.com/users/ThubLives/received_events","type":"User","site_admin":false},"created_at":"2018-10-26T22:47:48Z","updated_at":"2018-10-26T22:47:48Z","author_association":"NONE","body":"Another quirk during cursor teleportation is that all folded code is left unfolded.  Also, sometimes when I find my way back to where my cursor should be, I notice that the formatting was incomplete.  For example, one remaining curly brace was not indented properly, though all the other lines were adjusted."}}
{"actor":{"display_login":"ThubLives"}}