From c5e11c938b9cdcd2361a43e0f85ea7d6c1fbe657 Mon Sep 17 00:00:00 2001 From: drewprice Date: Wed, 29 Mar 2017 20:05:39 -0400 Subject: [PATCH] Remove legacy popout terminal helper --- lib/main.coffee | 51 +++++++++++++++++++++++-------------------------- 1 file changed, 24 insertions(+), 27 deletions(-) diff --git a/lib/main.coffee b/lib/main.coffee index a06f990d..3763d76b 100644 --- a/lib/main.coffee +++ b/lib/main.coffee @@ -10,33 +10,30 @@ module.exports = treeView: null activate: (@state) -> - treeViewisDisabled = localStorage.disableTreeView is 'true' - - if not treeViewisDisabled - @nsyncDisposables = nsyncInitializer(@state) - - @warnIfAtomsTreeViewIsActive() - - document.body.classList.add('learn-ide') - - @disposables = new CompositeDisposable - @state.attached ?= true if @shouldAttach() - - @createView() if @state.attached - - @disposables.add atom.commands.add('atom-workspace', { - 'tree-view:show': => @createView().show() - 'tree-view:toggle': => @createView().toggle() - 'tree-view:toggle-focus': => @createView().toggleFocus() - 'tree-view:reveal-active-file': => @createView().revealActiveFile() - 'tree-view:toggle-side': => @createView().toggleSide() - 'tree-view:add-file': => @createView().add(true) - 'tree-view:add-folder': => @createView().add(false) - 'tree-view:duplicate': => @createView().copySelectedEntry() - 'tree-view:remove': => @createView().removeSelectedEntries() - 'tree-view:rename': => @createView().moveSelectedEntry() - 'tree-view:show-current-file-in-file-manager': => @createView().showCurrentFileInFileManager() - }) + @nsyncDisposables = nsyncInitializer(@state) + + @warnIfAtomsTreeViewIsActive() + + document.body.classList.add('learn-ide') + + @disposables = new CompositeDisposable + @state.attached ?= true if @shouldAttach() + + @createView() if @state.attached + + @disposables.add atom.commands.add('atom-workspace', { + 'tree-view:show': => @createView().show() + 'tree-view:toggle': => @createView().toggle() + 'tree-view:toggle-focus': => @createView().toggleFocus() + 'tree-view:reveal-active-file': => @createView().revealActiveFile() + 'tree-view:toggle-side': => @createView().toggleSide() + 'tree-view:add-file': => @createView().add(true) + 'tree-view:add-folder': => @createView().add(false) + 'tree-view:duplicate': => @createView().copySelectedEntry() + 'tree-view:remove': => @createView().removeSelectedEntries() + 'tree-view:rename': => @createView().moveSelectedEntry() + 'tree-view:show-current-file-in-file-manager': => @createView().showCurrentFileInFileManager() + }) deactivate: -> nsync.cache() unless @preventCache