How can I programatically select a specific line and move my cursor to it? (I know how to scroll to it, but I was not able to figure out how to select it)
Have you tried to do it like in vscode ? :
Ctrl+G : [lineNumber] [enter] (go to a specific line number) (if Ctrl+g did not work on Monaco editor, try to open command palette (Ctrl+Shift+p) and type ":[lineNumber]"
Ctrl+L (select whole line) (Ctrl+Shift+end if it doesn't work)