From b86a813beb53bfb45fd4062fae8d1be2f33db088 Mon Sep 17 00:00:00 2001 From: Kevin Ransom Date: Mon, 12 Jun 2023 14:52:43 -0700 Subject: [PATCH 1/2] FSI Sometimes gets confused by tabs --- vsintegration/src/FSharp.VS.FSI/fsiSessionToolWindow.fs | 1 + 1 file changed, 1 insertion(+) diff --git a/vsintegration/src/FSharp.VS.FSI/fsiSessionToolWindow.fs b/vsintegration/src/FSharp.VS.FSI/fsiSessionToolWindow.fs index 53432cd843..2d8113d743 100644 --- a/vsintegration/src/FSharp.VS.FSI/fsiSessionToolWindow.fs +++ b/vsintegration/src/FSharp.VS.FSI/fsiSessionToolWindow.fs @@ -553,6 +553,7 @@ type internal FsiToolWindow() as this = {if dbgBreak then "#dbgbreak" else ""} #{topLine} @"{filename}" {text.ToString()} +;; #1 "stdin" { show()};; """ From 1c2bddb917e9febb8cdaeecccadbf9a60a62697e Mon Sep 17 00:00:00 2001 From: Kevin Ransom Date: Tue, 13 Jun 2023 12:53:41 -0700 Subject: [PATCH 2/2] also fix 15258 --- vsintegration/src/FSharp.VS.FSI/fsiSessionToolWindow.fs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vsintegration/src/FSharp.VS.FSI/fsiSessionToolWindow.fs b/vsintegration/src/FSharp.VS.FSI/fsiSessionToolWindow.fs index 2d8113d743..7160e0608d 100644 --- a/vsintegration/src/FSharp.VS.FSI/fsiSessionToolWindow.fs +++ b/vsintegration/src/FSharp.VS.FSI/fsiSessionToolWindow.fs @@ -551,12 +551,13 @@ type internal FsiToolWindow() as this = { hide()} #silentCd @"{dir}";; {if dbgBreak then "#dbgbreak" else ""} -#{topLine} @"{filename}" +# {topLine} @"{filename}" {text.ToString()} ;; -#1 "stdin" +# 1 "stdin" { show()};; """ + executeTextNoHistory filename interaction let sendSelectionToFSI action =