title: Monaco Editor Getting Line Number
body: <p>I am working on a project which will show the popup for the corresponding register number selected from the Monaco Editor.For that, I need the line number which is selected in the Monaco editor. How to get the particular line number from the editor and pass it to a javascript function?</p>
  
  <p>Thanks in advance</p>