Skip to content

Commit

Permalink
improve send selection
Browse files Browse the repository at this point in the history
  • Loading branch information
yuuuxt committed Jun 14, 2022
1 parent 85176f2 commit d96aa92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Components/Fsi.fs
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,9 @@ module Fsi =
editor.selection.active.character
)

let text = editor.document.getText range
let fullRange = vscode.Range.Create(range.start.line, 0, range.``end``.line + 1., 0)

let text = editor.document.getText fullRange

send text
|> Promise.suppress // prevent unhandled promise exception
Expand Down

0 comments on commit d96aa92

Please sign in to comment.