From cabc1a22b17f88069fd4d4acee65f34150b46dd0 Mon Sep 17 00:00:00 2001 From: LH-and-FPGA <180024497+LH-and-FPGA@users.noreply.github.com> Date: Sat, 15 Feb 2025 22:46:12 +0000 Subject: [PATCH] Fix Fsi Send File --- src/Components/Fsi.fs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/Components/Fsi.fs b/src/Components/Fsi.fs index 58324a77..bf704810 100644 --- a/src/Components/Fsi.fs +++ b/src/Components/Fsi.fs @@ -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 @@ -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 } @@ -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 () @@ -550,7 +548,7 @@ module Fsi = let! terminal = getTerminal () - sendCd terminal (Some editor) + sendCd terminal (Some editor) None let range = vscode.Range.Create( @@ -577,7 +575,7 @@ module Fsi = let! terminal = getTerminal () - sendCd terminal (Some editor) + sendCd terminal (Some editor) None let range = vscode.Range.Create(