{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/10801","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/10801/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/10801/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/10801/events","html_url":"https://github.com/Microsoft/vscode/issues/10801","id":172468016,"number":10801,"title":"Add source to TextDocumentChangeEvent","user":{"login":"jrieken","id":1794099,"avatar_url":"https://avatars.githubusercontent.com/u/1794099?v=3","gravatar_id":"","url":"https://api.github.com/users/jrieken","html_url":"https://github.com/jrieken","followers_url":"https://api.github.com/users/jrieken/followers","following_url":"https://api.github.com/users/jrieken/following{/other_user}","gists_url":"https://api.github.com/users/jrieken/gists{/gist_id}","starred_url":"https://api.github.com/users/jrieken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrieken/subscriptions","organizations_url":"https://api.github.com/users/jrieken/orgs","repos_url":"https://api.github.com/users/jrieken/repos","events_url":"https://api.github.com/users/jrieken/events{/privacy}","received_events_url":"https://api.github.com/users/jrieken/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/vscode/labels/api","name":"api","color":"1d76db"},{"url":"https://api.github.com/repos/Microsoft/vscode/labels/feature-request","name":"feature-request","color":"bfe5bf"},{"url":"https://api.github.com/repos/Microsoft/vscode/labels/VIM","name":"VIM","color":"c7def8"}],"state":"open","locked":false,"assignee":{"login":"jrieken","id":1794099,"avatar_url":"https://avatars.githubusercontent.com/u/1794099?v=3","gravatar_id":"","url":"https://api.github.com/users/jrieken","html_url":"https://github.com/jrieken","followers_url":"https://api.github.com/users/jrieken/followers","following_url":"https://api.github.com/users/jrieken/following{/other_user}","gists_url":"https://api.github.com/users/jrieken/gists{/gist_id}","starred_url":"https://api.github.com/users/jrieken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrieken/subscriptions","organizations_url":"https://api.github.com/users/jrieken/orgs","repos_url":"https://api.github.com/users/jrieken/repos","events_url":"https://api.github.com/users/jrieken/events{/privacy}","received_events_url":"https://api.github.com/users/jrieken/received_events","type":"User","site_admin":false},"assignees":[{"login":"jrieken","id":1794099,"avatar_url":"https://avatars.githubusercontent.com/u/1794099?v=3","gravatar_id":"","url":"https://api.github.com/users/jrieken","html_url":"https://github.com/jrieken","followers_url":"https://api.github.com/users/jrieken/followers","following_url":"https://api.github.com/users/jrieken/following{/other_user}","gists_url":"https://api.github.com/users/jrieken/gists{/gist_id}","starred_url":"https://api.github.com/users/jrieken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrieken/subscriptions","organizations_url":"https://api.github.com/users/jrieken/orgs","repos_url":"https://api.github.com/users/jrieken/repos","events_url":"https://api.github.com/users/jrieken/events{/privacy}","received_events_url":"https://api.github.com/users/jrieken/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Microsoft/vscode/milestones/26","html_url":"https://github.com/Microsoft/vscode/milestones/September%202016","labels_url":"https://api.github.com/repos/Microsoft/vscode/milestones/26/labels","id":1944122,"number":26,"title":"September 2016","description":"","creator":{"login":"joaomoreno","id":22350,"avatar_url":"https://avatars.githubusercontent.com/u/22350?v=3","gravatar_id":"","url":"https://api.github.com/users/joaomoreno","html_url":"https://github.com/joaomoreno","followers_url":"https://api.github.com/users/joaomoreno/followers","following_url":"https://api.github.com/users/joaomoreno/following{/other_user}","gists_url":"https://api.github.com/users/joaomoreno/gists{/gist_id}","starred_url":"https://api.github.com/users/joaomoreno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaomoreno/subscriptions","organizations_url":"https://api.github.com/users/joaomoreno/orgs","repos_url":"https://api.github.com/users/joaomoreno/repos","events_url":"https://api.github.com/users/joaomoreno/events{/privacy}","received_events_url":"https://api.github.com/users/joaomoreno/received_events","type":"User","site_admin":false},"open_issues":120,"closed_issues":34,"state":"open","created_at":"2016-08-16T05:20:24Z","updated_at":"2016-09-06T14:58:33Z","due_on":"2016-09-30T00:00:00Z","closed_at":null},"comments":5,"created_at":"2016-08-22T14:32:37Z","updated_at":"2016-09-06T14:59:43Z","closed_at":null,"body":"It sometimes useful to know how a text change was triggered esp for the `.` feature in VIM. See https://github.com/Microsoft/vscode/issues/1431 for more on this."},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/244978502","html_url":"https://github.com/Microsoft/vscode/issues/10801#issuecomment-244978502","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/10801","id":244978502,"user":{"login":"drew-wallace","id":7782572,"avatar_url":"https://avatars.githubusercontent.com/u/7782572?v=3","gravatar_id":"","url":"https://api.github.com/users/drew-wallace","html_url":"https://github.com/drew-wallace","followers_url":"https://api.github.com/users/drew-wallace/followers","following_url":"https://api.github.com/users/drew-wallace/following{/other_user}","gists_url":"https://api.github.com/users/drew-wallace/gists{/gist_id}","starred_url":"https://api.github.com/users/drew-wallace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drew-wallace/subscriptions","organizations_url":"https://api.github.com/users/drew-wallace/orgs","repos_url":"https://api.github.com/users/drew-wallace/repos","events_url":"https://api.github.com/users/drew-wallace/events{/privacy}","received_events_url":"https://api.github.com/users/drew-wallace/received_events","type":"User","site_admin":false},"created_at":"2016-09-06T14:59:43Z","updated_at":"2016-09-06T14:59:43Z","body":"It would be helpful for the source to be really specific. A few examples:\r\nTyped something: `typed`\r\nTyped something in a peek window: `peek.typed`\r\nPasted something: `clipboard`\r\nUsed Extension_A: `extension.Extension_A`\r\nUsed Command_A: `command.Command_A`\r\nActually, allowing the source to be user defined would be fine too.\r\n\r\nHere's my use case:\r\nI'm working on a remote pair programming extension and when a remote user makes an edit, the local user receives the edit, but the local user's onDidChangeTextDocument picks up on it and triggers the same edit on the remote user, which causes an infinite loop.\r\n\r\nHaving the source say that the edit was made from my extension would allow me to filter edits and not cause an infinite loop between the local user and remote user."}}
{"actor":{"display_login":"drew-wallace"}}