Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Remove legacy popout terminal helper #43

Merged
merged 1 commit into from
Mar 30, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 24 additions & 27 deletions lib/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down