-
-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
When sending line or selection to FSI, I'm often in the middle of a nested module/function like :
let solve data =
printfn ""
printfn "Solving %A" data
let tmpSeq = seq { 1; 2; 3}
tmpSeq |> Seq.sort
solve "test"If I'm sending everything it's working fine, but if I'm only sending the last 2 lines of solve function
let tmpSeq = seq { 1; 2; 3}
tmpSeq |> Seq.sortIt will fail because of indentation which is expected from a compilation POV.
Describe the solution you'd like
Before sending lines to FSI, check if all lines have common leading spaces that can be removed.
Describe alternatives you've considered
Handling this directly in the keymap before calling Ionide functions
Additional context
I have a working branch if you'd like to try it
cannorincannorin
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request