From 82a906cce5f1e5e427b752b3dd66f5d08997fb8f Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 15 Sep 2014 16:39:53 -0700 Subject: [PATCH] Add Workspace::onDidChangeActivePaneItem Closes #3546 --- src/workspace.coffee | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/workspace.coffee b/src/workspace.coffee index 6515609ab..3862b91e0 100644 --- a/src/workspace.coffee +++ b/src/workspace.coffee @@ -113,7 +113,7 @@ class Workspace extends Model # Extended: Invoke the given callback when a pane item is added to the # workspace. # - # * `callback` {Function} to be called panes are added. + # * `callback` {Function} to be called when panes are added. # * `event` {Object} with the following keys: # * `item` The added pane item. # * `pane` {Pane} containing the added item. @@ -122,6 +122,15 @@ class Workspace extends Model # Returns a {Disposable} on which `.dispose()` can be called to unsubscribe. onDidAddPaneItem: (callback) -> @paneContainer.onDidAddPaneItem(callback) + # Extended: Invoke the given callback when the active pane item changes. + # + # * `callback` {Function} to be called when the active pane item changes. + # * `event` {Object} with the following keys: + # * `activeItem` The active pane item. + # + # Returns a {Disposable} on which `.dispose()` can be called to unsubscribe. + onDidChangeActivePaneItem: (callback) -> @paneContainer.onDidChangeActivePaneItem(callback) + # Extended: Invoke the given callback with all current and future panes items in # the workspace. #