title: VSCode extension developmet: convert x, y coordinates on the screen to line, column number in the file
body: <p>I'm now trying to develop a VSCode extension, which aims to <strong>convert x, y coordinates of the screen data to line, column number of code file</strong>. But I cannot even get the size and location of text editor.</p>
  <p>Visual Studio and Eclipse has interface like <code>Microsoft.VisualStudio.Text.Editor.ITextView</code> or <code>org.eclipse.swt.custom.StyledText</code> to complete the task, but I haven't found similar interface in VSCode.</p>
  <p>The <code>TextEditor</code> and <code>TextDocument</code> class in VSCode Extension API have some attributes like <code>visibleRanges</code> or <code>lineAt</code> but they only measure position with line, character number. I can't find the function connecting between screen pixels with them.</p>