mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
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:
committed by
Max Brunsfeld
parent
08e8975a10
commit
45bd466384
@@ -712,7 +712,6 @@ module.exports = class Workspace extends Model {
|
||||
pane.clearPendingItem()
|
||||
}
|
||||
|
||||
pane.addItem(item, options)
|
||||
this.itemOpened(item)
|
||||
|
||||
if (options.activateItem !== false) {
|
||||
|
||||
Reference in New Issue
Block a user