Before running a command in an extension, I need to modify the selection range to include entire lines...
const sel = textEditor.selection;
const firstLine = textEditor.document.lineAt(sel.start.line);
const lastLine = textEditor.document.lineAt(sel.end.line);
const range = new vscode.Range(firstLine.lineNumber, firstLine.range.start.character, lastLine.lineNumber, lastLine.range.end.character);
I have successfully created a new range, but I am unsure of how to adjust the document's selection to this new range...