Skip to content

Commit cabc1a2

Browse files
committed
Fix Fsi Send File
1 parent c0c4f49 commit cabc1a2

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/Components/Fsi.fs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -332,9 +332,7 @@ module Fsi =
332332

333333
| None ->
334334
let dir = workspace.rootPath.Value
335-
let file = node.path.join (dir, "tmp.fsx")
336-
let line = defaultArg overrideLine 1
337-
file, dir, line
335+
node.path.join (dir, "tmp.fsx"), dir, 1
338336

339337
match lastCd with
340338
// Same dir as last time, no need to send it
@@ -474,7 +472,7 @@ module Fsi =
474472
fsiTerminal <- Some terminal
475473

476474
// initially have to set up the terminal to be in the correct start directory
477-
sendCd newTerminal window.activeTextEditor
475+
sendCd newTerminal window.activeTextEditor None
478476

479477
return newTerminal
480478
}
@@ -532,7 +530,7 @@ module Fsi =
532530
let pos = editor.selection.start
533531
let line = editor.document.lineAt pos
534532

535-
sendCd terminal (Some editor)
533+
sendCd terminal (Some editor) None
536534

537535
do! send terminal line.text
538536
do! moveCursorDownOneLine ()
@@ -550,7 +548,7 @@ module Fsi =
550548

551549
let! terminal = getTerminal ()
552550

553-
sendCd terminal (Some editor)
551+
sendCd terminal (Some editor) None
554552

555553
let range =
556554
vscode.Range.Create(
@@ -577,7 +575,7 @@ module Fsi =
577575

578576
let! terminal = getTerminal ()
579577

580-
sendCd terminal (Some editor)
578+
sendCd terminal (Some editor) None
581579

582580
let range =
583581
vscode.Range.Create(

0 commit comments

Comments
 (0)