 
       editor.onDidSave =>
         if this.formatFilePath(buffer.file.path).match(/\.atom\/code/)
+          if @connectionState == 'closed'
+            @popupNoConnectionWarning()
+
           @sendSave(editor.project, buffer.file, buffer)
       editor.onDidChangePath =>
         console.log('PATH CHANGED')

      else
        console.log(e.type)

  sendSave: (project, file, buffer) ->
    ipc.send 'fs-local-save', JSON.stringify({
      action: 'local_save',

    ipc.send 'register-new-fs-connection', ws_url
    ipc.on 'remote-open-event', (file) ->
      atom.workspace.open(file)

    ipc.on 'connection-state', (state) =>
      @connectionState = state

    @handleEvents()
    @treeViewEventQueue = []
