Skip to content

Commit

Permalink
Fix Fsi Send File
Browse files Browse the repository at this point in the history
  • Loading branch information
LH-and-FPGA committed Feb 15, 2025
1 parent c0c4f49 commit cabc1a2
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/Components/Fsi.fs
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,7 @@ module Fsi =

| None ->
let dir = workspace.rootPath.Value
let file = node.path.join (dir, "tmp.fsx")
let line = defaultArg overrideLine 1
file, dir, line
node.path.join (dir, "tmp.fsx"), dir, 1

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

// initially have to set up the terminal to be in the correct start directory
sendCd newTerminal window.activeTextEditor
sendCd newTerminal window.activeTextEditor None

return newTerminal
}
Expand Down Expand Up @@ -532,7 +530,7 @@ module Fsi =
let pos = editor.selection.start
let line = editor.document.lineAt pos

sendCd terminal (Some editor)
sendCd terminal (Some editor) None

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

let! terminal = getTerminal ()

sendCd terminal (Some editor)
sendCd terminal (Some editor) None

let range =
vscode.Range.Create(
Expand All @@ -577,7 +575,7 @@ module Fsi =

let! terminal = getTerminal ()

sendCd terminal (Some editor)
sendCd terminal (Some editor) None

let range =
vscode.Range.Create(
Expand Down

0 comments on commit cabc1a2

Please sign in to comment.