{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/pulls/comments/33305436","id":33305436,"diff_hunk":"@@ -24,8 +24,10 @@ def on_modified_with_info(self, view, info):\n             info.prev_sel[0].empty()\n         ):\n             last_command, args, repeat_times = view.command_history(0)\n+            redo_command = view.command_history(1)[0]\n             log.debug(\"last_command:{0}, args:{1}\".format(last_command, args))\n-            if last_command == \"insert\":\n+            log.debug(\"redo_command:{0}\".format(redo_command))\n+            if last_command == \"insert\" and redo_command != \"typescript_format_on_key\":","path":"typescript/listeners/format.py","position":14,"original_position":14,"commit_id":"4fcf4f5aaaf8b80df7e664bd168f167da683b360","original_commit_id":"4fcf4f5aaaf8b80df7e664bd168f167da683b360","user":{"login":"zhengbli","id":1171301,"avatar_url":"https://avatars.githubusercontent.com/u/1171301?v=3","gravatar_id":"","url":"https://api.github.com/users/zhengbli","html_url":"https://github.com/zhengbli","followers_url":"https://api.github.com/users/zhengbli/followers","following_url":"https://api.github.com/users/zhengbli/following{/other_user}","gists_url":"https://api.github.com/users/zhengbli/gists{/gist_id}","starred_url":"https://api.github.com/users/zhengbli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhengbli/subscriptions","organizations_url":"https://api.github.com/users/zhengbli/orgs","repos_url":"https://api.github.com/users/zhengbli/repos","events_url":"https://api.github.com/users/zhengbli/events{/privacy}","received_events_url":"https://api.github.com/users/zhengbli/received_events","type":"User","site_admin":false},"body":"And if the user has redone every operation, the last one cannot be ``insert`` when the ``format_on_key`` was enabled. ","created_at":"2015-06-25T21:10:48Z","updated_at":"2015-06-25T21:10:48Z","html_url":"https://github.com/Microsoft/TypeScript-Sublime-Plugin/pull/259#discussion_r33305436","pull_request_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/pulls/259","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/pulls/comments/33305436"},"html":{"href":"https://github.com/Microsoft/TypeScript-Sublime-Plugin/pull/259#discussion_r33305436"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/pulls/259"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/pulls/259","id":38512974,"html_url":"https://github.com/Microsoft/TypeScript-Sublime-Plugin/pull/259","diff_url":"https://github.com/Microsoft/TypeScript-Sublime-Plugin/pull/259.diff","patch_url":"https://github.com/Microsoft/TypeScript-Sublime-Plugin/pull/259.patch","issue_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/issues/259","number":259,"state":"open","locked":false,"title":"Avoid running format_on_key for undo commands","user":{"login":"zhengbli","id":1171301,"avatar_url":"https://avatars.githubusercontent.com/u/1171301?v=3","gravatar_id":"","url":"https://api.github.com/users/zhengbli","html_url":"https://github.com/zhengbli","followers_url":"https://api.github.com/users/zhengbli/followers","following_url":"https://api.github.com/users/zhengbli/following{/other_user}","gists_url":"https://api.github.com/users/zhengbli/gists{/gist_id}","starred_url":"https://api.github.com/users/zhengbli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhengbli/subscriptions","organizations_url":"https://api.github.com/users/zhengbli/orgs","repos_url":"https://api.github.com/users/zhengbli/repos","events_url":"https://api.github.com/users/zhengbli/events{/privacy}","received_events_url":"https://api.github.com/users/zhengbli/received_events","type":"User","site_admin":false},"body":"Fix #257 ","created_at":"2015-06-25T05:22:56Z","updated_at":"2015-06-25T21:10:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"af05a72cc80c54e3368e9e4c3f9bedb4459cd153","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/pulls/259/commits","review_comments_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/pulls/259/comments","review_comment_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/issues/259/comments","statuses_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/statuses/4fcf4f5aaaf8b80df7e664bd168f167da683b360","head":{"label":"zhengbli:ms_master","ref":"ms_master","sha":"4fcf4f5aaaf8b80df7e664bd168f167da683b360","user":{"login":"zhengbli","id":1171301,"avatar_url":"https://avatars.githubusercontent.com/u/1171301?v=3","gravatar_id":"","url":"https://api.github.com/users/zhengbli","html_url":"https://github.com/zhengbli","followers_url":"https://api.github.com/users/zhengbli/followers","following_url":"https://api.github.com/users/zhengbli/following{/other_user}","gists_url":"https://api.github.com/users/zhengbli/gists{/gist_id}","starred_url":"https://api.github.com/users/zhengbli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhengbli/subscriptions","organizations_url":"https://api.github.com/users/zhengbli/orgs","repos_url":"https://api.github.com/users/zhengbli/repos","events_url":"https://api.github.com/users/zhengbli/events{/privacy}","received_events_url":"https://api.github.com/users/zhengbli/received_events","type":"User","site_admin":false},"repo":{"id":33347897,"name":"TypeScript-Sublime-Plugin","full_name":"zhengbli/TypeScript-Sublime-Plugin","owner":{"login":"zhengbli","id":1171301,"avatar_url":"https://avatars.githubusercontent.com/u/1171301?v=3","gravatar_id":"","url":"https://api.github.com/users/zhengbli","html_url":"https://github.com/zhengbli","followers_url":"https://api.github.com/users/zhengbli/followers","following_url":"https://api.github.com/users/zhengbli/following{/other_user}","gists_url":"https://api.github.com/users/zhengbli/gists{/gist_id}","starred_url":"https://api.github.com/users/zhengbli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhengbli/subscriptions","organizations_url":"https://api.github.com/users/zhengbli/orgs","repos_url":"https://api.github.com/users/zhengbli/repos","events_url":"https://api.github.com/users/zhengbli/events{/privacy}","received_events_url":"https://api.github.com/users/zhengbli/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zhengbli/TypeScript-Sublime-Plugin","description":"IO wrapper around TypeScript language services, allowing for easy consumption by editor plugins","fork":true,"url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin","forks_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/forks","keys_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/teams","hooks_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/hooks","issue_events_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/issues/events{/number}","events_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/events","assignees_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/assignees{/user}","branches_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/branches{/branch}","tags_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/tags","blobs_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/languages","stargazers_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/stargazers","contributors_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/contributors","subscribers_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/subscribers","subscription_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/subscription","commits_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/contents/{+path}","compare_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/merges","archive_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/downloads","issues_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/issues{/number}","pulls_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/labels{/name}","releases_url":"https://api.github.com/repos/zhengbli/TypeScript-Sublime-Plugin/releases{/id}","created_at":"2015-04-03T05:27:33Z","updated_at":"2015-05-06T22:08:06Z","pushed_at":"2015-06-25T19:49:32Z","git_url":"git://github.com/zhengbli/TypeScript-Sublime-Plugin.git","ssh_url":"git@github.com:zhengbli/TypeScript-Sublime-Plugin.git","clone_url":"https://github.com/zhengbli/TypeScript-Sublime-Plugin.git","svn_url":"https://github.com/zhengbli/TypeScript-Sublime-Plugin","homepage":null,"size":34101,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"ms_master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"5cf46e5a05abe100a244000001499bdeced7161a","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":28059353,"name":"TypeScript-Sublime-Plugin","full_name":"Microsoft/TypeScript-Sublime-Plugin","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/TypeScript-Sublime-Plugin","description":"IO wrapper around TypeScript language services, allowing for easy consumption by editor plugins","fork":false,"url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin","forks_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/forks","keys_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/teams","hooks_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/events","assignees_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/tags","blobs_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/languages","stargazers_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/subscription","commits_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/merges","archive_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/downloads","issues_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/releases{/id}","created_at":"2014-12-15T22:30:20Z","updated_at":"2015-06-23T21:26:24Z","pushed_at":"2015-06-25T19:49:32Z","git_url":"git://github.com/Microsoft/TypeScript-Sublime-Plugin.git","ssh_url":"git@github.com:Microsoft/TypeScript-Sublime-Plugin.git","clone_url":"https://github.com/Microsoft/TypeScript-Sublime-Plugin.git","svn_url":"https://github.com/Microsoft/TypeScript-Sublime-Plugin","homepage":null,"size":32841,"stargazers_count":284,"watchers_count":284,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":46,"forks":17,"open_issues":46,"watchers":284,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/pulls/259"},"html":{"href":"https://github.com/Microsoft/TypeScript-Sublime-Plugin/pull/259"},"issue":{"href":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/issues/259"},"comments":{"href":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/issues/259/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/pulls/259/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/pulls/259/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/TypeScript-Sublime-Plugin/statuses/4fcf4f5aaaf8b80df7e664bd168f167da683b360"}}}}