     @subscriptions = new CompositeDisposable
     @subscriptions.add atom.commands.add 'atom-workspace', 'magic-console:toggle':
       => @toggle()
-    @view = null
+    @views = []
     @blankRuntime = null
     atom.workspace.addOpener (uriToOpen) =>
       try

    atom.workspace.open(uri, split: 'right', searchAllPanes: true).then (consoleRuntimeView) =>
      if consoleRuntimeView instanceof ConsoleRuntimeView
        previousActivePane.activate()
        @runBlank()

      catch error
        return
      if host is 'editor'
        @subscriptions.add @view.onDidSave (ev) =>
        editorId = pathname.substring(1)
        view = new ConsoleRuntimeView({editorId})
        changeCount = view.editor.buffer.changeCount.valueOf()
        @views = [@views..., view]
        @subscriptions.add view.onDidDestroy =>
          @blankRuntime.stop()
          @views = @views.filter (view) -> view.editorId != editorId
        @subscriptions.add view.onDidSave (ev) =>
          if atom.config.get 'magic-console.evaluateOnSave'
            @runBlank()
        view
      else
        @subscriptions.add @view.onDidDestroy => @blankRuntime.stop()
        # @subscriptions.add @view.onDidSave (ev) => console.log ev
        filePath = pathname
        view = new ConsoleRuntimeView({filePath})
        changeCount = view.editor.buffer.changeCount.valueOf()
        @views = [@views..., view]
        @subscriptions.add view.onDidDestroy =>
          @blankRuntime.stop()
          @views = @views.filter (view) -> view.filePath != filePath
        view

  deactivate: ->
    @subscriptions.dispose()
