anchor.diff:                          sprintf "\"%s\" --fsi-server-input-codepage:65001" Environment.fsi, "cls"
                   else
                       Environment.fsi, "clear"
  +
  +
               terminal.sendText(clear, true)
               terminal.sendText(fsi, true)
  +            setTimeout (sendCd, 1000) |> ignore
               terminal.show(true)
           with
           | _ ->
               window.showErrorMessage "Failed to spawn FSI, please ensure it's in PATH" |> ignore
   
   
  -    let private send (msg : string) file =
  +    let private send (msg : string) =
   
           if fsiOutput.IsNone then start ()
           let msg = msg + ";;\n"
  -        let msg' =
  -            try
  -                let dir = path.dirname file
  -                "\n"
  -                + (sprintf "# silentCd @\"%s\" ;; " dir) + "\n"
  -                + (sprintf "# %d @\"%s\" " 1 file) + "\n"
  -                + msg
  -            with
  -            | _ -> msg
  -
           fsiOutput |> Option.iter (fun fp -> fp.sendText(msg,false) )
   
   
  
positive.code: open Ionide.VSCode.Helpers
  
  module Fsi =
      let mutable fsiOutput : Terminal option = None
  
      let isPowershell () =
          let t = workspace.getConfiguration().get("terminal.integrated.shell.windows", "")
          t.ToLower().Contains "powershell"
  
      let private start () =
          try
  
negative.code:         else
              let range = Range(editor.selection.anchor.line, editor.selection.anchor.character, editor.selection.active.line, editor.selection.active.character)
              let text = editor.document.getText range
              send text
  
      let private sendFile () =
          let editor = window.activeTextEditor
          let file = editor.document.fileName
          let text = editor.document.getText ()
          send text
  
  
  
      let activate (disposables: Disposable[]) =
          window.onDidChangeActiveTextEditor $ ((fun n -> if JS.isDefined n then sendCd()), (), disposables) |> ignore
  
          commands.registerCommand("fsi.Start", start |> unbox) |> ignore
          commands.registerCommand("fsi.SendLine", sendLine |> unbox) |> ignore
          commands.registerCommand("fsi.SendSelection", sendSelection |> unbox) |> ignore
  