From 0b262cb09cd1125f30e517ca948c07b3dddb8898 Mon Sep 17 00:00:00 2001 From: shadow-light <42055707+shadow-light@users.noreply.github.com> Date: Wed, 10 Oct 2018 09:35:37 +1100 Subject: [PATCH] Prevent multiple instances of tree-view being opened --- lib/tree-view-package.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tree-view-package.js b/lib/tree-view-package.js index b0ee7b1f..47713683 100644 --- a/lib/tree-view-package.js +++ b/lib/tree-view-package.js @@ -28,7 +28,8 @@ class TreeViewPackage { const showOnAttach = !atom.workspace.getActivePaneItem() this.treeViewOpenPromise = atom.workspace.open(treeView, { activatePane: showOnAttach, - activateItem: showOnAttach + activateItem: showOnAttach, + searchAllPanes: true }) } else { this.treeViewOpenPromise = Promise.resolve()