{"action":"created","issue":{"url":"https://api.github.com/repos/atom/atom/issues/8997","labels_url":"https://api.github.com/repos/atom/atom/issues/8997/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom/issues/8997/comments","events_url":"https://api.github.com/repos/atom/atom/issues/8997/events","html_url":"https://github.com/atom/atom/issues/8997","id":108980757,"number":8997,"title":"Consider an `onDidStopChangingActivePaneItem`","user":{"login":"ssorallen","id":29612,"avatar_url":"https://avatars.githubusercontent.com/u/29612?v=3","gravatar_id":"","url":"https://api.github.com/users/ssorallen","html_url":"https://github.com/ssorallen","followers_url":"https://api.github.com/users/ssorallen/followers","following_url":"https://api.github.com/users/ssorallen/following{/other_user}","gists_url":"https://api.github.com/users/ssorallen/gists{/gist_id}","starred_url":"https://api.github.com/users/ssorallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssorallen/subscriptions","organizations_url":"https://api.github.com/users/ssorallen/orgs","repos_url":"https://api.github.com/users/ssorallen/repos","events_url":"https://api.github.com/users/ssorallen/events{/privacy}","received_events_url":"https://api.github.com/users/ssorallen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/atom/labels/enhancement","name":"enhancement","color":"bfd4f2"},{"url":"https://api.github.com/repos/atom/atom/labels/help-wanted","name":"help-wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-29T23:30:48Z","updated_at":"2015-09-29T23:45:55Z","closed_at":null,"body":"Similar to the motivation behind [`TextEditor::onDidStopChanging`](https://atom.io/docs/api/v1.1.0-beta.0/TextEditor#instance-onDidStopChanging),  clients of `onDidStopChangingActivePaneItem` should nearly always wait for a small time period before acting on the new pane item. If the user is quickly switching through tabs or closing several tabs in quick succession, work done on [`Workspace::onDidChangeActivePaneItem`](https://atom.io/docs/api/v1.1.0-beta.0/Workspace#instance-onDidChangeActivePaneItem) is likely wasted and can become a bottleneck for giving feedback to the user if they are switching/closing tabs quickly.\r\n\r\nThere's at least one candidate in core that could defer its actions until the active item has stopped changing: FileInfoView in the status bar https://github.com/atom/status-bar/blob/master/lib/file-info-view.coffee#L71.\r\n\r\nNuclide wrapped `onDidChangeActivePaneItem` to get this effect: https://github.com/facebook/nuclide/blob/master/pkg/nuclide/atom-helpers/lib/atom-event-debounce.js#L29\r\n\r\nI think a `DidStopChangingActivePaneItem` should be recommended similar to the one in `TextEditor` if it's created."},"comment":{"url":"https://api.github.com/repos/atom/atom/issues/comments/144222346","html_url":"https://github.com/atom/atom/issues/8997#issuecomment-144222346","issue_url":"https://api.github.com/repos/atom/atom/issues/8997","id":144222346,"user":{"login":"ssorallen","id":29612,"avatar_url":"https://avatars.githubusercontent.com/u/29612?v=3","gravatar_id":"","url":"https://api.github.com/users/ssorallen","html_url":"https://github.com/ssorallen","followers_url":"https://api.github.com/users/ssorallen/followers","following_url":"https://api.github.com/users/ssorallen/following{/other_user}","gists_url":"https://api.github.com/users/ssorallen/gists{/gist_id}","starred_url":"https://api.github.com/users/ssorallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssorallen/subscriptions","organizations_url":"https://api.github.com/users/ssorallen/orgs","repos_url":"https://api.github.com/users/ssorallen/repos","events_url":"https://api.github.com/users/ssorallen/events{/privacy}","received_events_url":"https://api.github.com/users/ssorallen/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T23:45:55Z","updated_at":"2015-09-29T23:45:55Z","body":"@maxbrunsfeld Awesome, I'm happy to add this. I'll send a PR in the next couple days."}}