Don’t add item in Workspace.open if activateItem is false

We thought it was a bug that activateItem: false caused the
item not to be added, but it turned out there were package
tests that depended on this behavior.

Ideally, we should have an addItem option that exhibits this
behavior instead.

Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
Nathan Sobo
2017-03-28 15:00:13 -06:00
committed by Max Brunsfeld
parent 08e8975a10
commit 45bd466384

View File

@@ -712,7 +712,6 @@ module.exports = class Workspace extends Model {
pane.clearPendingItem()
}
pane.addItem(item, options)
this.itemOpened(item)
if (options.activateItem !== false) {