{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/49567","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/49567/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/49567/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/49567/events","html_url":"https://github.com/Microsoft/vscode/issues/49567","id":321670408,"number":49567,"title":"Undo and Redo problems on OSX in Typescript files with Auto Save enabled","user":{"login":"sek","id":159334,"avatar_url":"https://avatars2.githubusercontent.com/u/159334?v=4","gravatar_id":"","url":"https://api.github.com/users/sek","html_url":"https://github.com/sek","followers_url":"https://api.github.com/users/sek/followers","following_url":"https://api.github.com/users/sek/following{/other_user}","gists_url":"https://api.github.com/users/sek/gists{/gist_id}","starred_url":"https://api.github.com/users/sek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sek/subscriptions","organizations_url":"https://api.github.com/users/sek/orgs","repos_url":"https://api.github.com/users/sek/repos","events_url":"https://api.github.com/users/sek/events{/privacy}","received_events_url":"https://api.github.com/users/sek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-09T18:06:52Z","updated_at":"2018-05-09T18:06:52Z","closed_at":null,"author_association":"NONE","body":"Issue Type: <b>Bug</b>\r\n\r\n### Steps to Reproduce\r\n\r\n1. Enable Auto Save in the File menu\r\n2. Create a typescript file - ex \"test-file.ts\" and open in editor\r\n3. Put some words in the file - ex: \"// here is a comment with some words in it\"\r\n4. Delete one word - ex: comment\r\n5. Delete a second word - ex: some\r\n6. Undo each deletion with Command-Z or Edit->Undo\r\n7. Redo deleting each word with Command-Shift-Z or Edit->Redo\r\n\r\n### Expected\r\n\r\n- Undo twice should restore both deleted words\r\n- Redo twice should re-delete both deleted words\r\n\r\n### Actual\r\n\r\n- Multiple undo actions are required to undo each deletion - in three tests, I had to press Command-Z between 4 and 6 times to get the 2 deleted words to reappear\r\n- Redo does not work at all after undoing the 2 deletions\r\n\r\n### Additional Details\r\n\r\n- If \"Auto Save\" is disabled, the scenario works as expected (2 Undo Actions, 2 Redo Actions)\r\n- If editing a text file, even with \"Auto Save\" enabled, it works as expected (test-file.text with identical contents and undo/redos behaves exactly as I'd hope test-file.ts would behave)\r\n- This is partially reproducible with manual saves in a Typescript file, ex: if manually saving after step 6, redo is no longer possible\r\n\r\nAlso see: https://github.com/Microsoft/vscode/issues/26228 for an earlier report of the problem - closed as \"caused by extension\", but perhaps disabling \"Auto Save\" was the real \"fix\"\r\n\r\nVS Code version: Code 1.22.2 (3aeede733d9a3098f7b4bdc1f66b63b0f48c1ef9, 2018-04-12T16:32:53.389Z)\r\nOS version: Darwin x64 17.4.0\r\n\r\n<details>\r\n<summary>System Info</summary>\r\n\r\n|Item|Value|\r\n|---|---|\r\n|CPUs|Intel(R) Core(TM) i7-4578U CPU @ 3.00GHz (4 x 3000)|\r\n|Load (avg)|3, 3, 5|\r\n|Memory (System)|16.00GB (1.75GB free)|\r\n|Process Argv|/Applications/Visual Studio Code.app/Contents/MacOS/Electron|\r\n|Screen Reader|no|\r\n|VM|0%|\r\n\r\n</details>Extensions: none\r\n<!-- generated by issue reporter -->"}}
{"actor":{"display_login":"sek"}}