anchor.diff:              |> Promise.onSuccess (fun closedTerminalPID ->
                   if closedTerminalPID = currentTerminalPID then
                       fsiOutput <- None
  -                    fsiOutputPID <- None)
  +                    fsiOutputPID <- None
  +                    lastCd <- None
  +                    lastCurrentFile <- None)
               |> Promise.suppress // prevent unhandled promise exception
               |> ignore)
           |> ignore
  
positive.code:         let editor = window.activeTextEditor
          let _ = editor.document.fileName
  
          if editor.selection.isEmpty then
              sendLine ()
          else
  
negative.code:         let _ = editor.document.fileName
          let pos = editor.selection.start
          let line = editor.document.lineAt pos
          sendCd editor
          send line.text
          |> Promise.onSuccess (fun _ -> commands.executeCommand "cursorDown" |> ignore)
          |> Promise.suppress // prevent unhandled promise exception
  