How to get the lines with a cursor programatically in VS Code?

Viewed 363

I know I can get a single line doing this:

editor.document.lineAt(editor.selection.active.line).text

But I'm wondering how to do the equivalent when I have multiple cursors. I haven't found any reference to multiline cursors in the API docs.

1 Answers
Related