title: How does an extension for VS Code get the install path of VS Code?
body: <p>I'm developing an extension for VS code(Using javascript). Now I need the path where VS Code installed.
  There is a way for windows:</p>
  
  <pre><code>var child = require('child_process');
  child.exec('reg query HKEY_CLASSES_ROOT\\*\\shell\\VSCode /v Icon', function (error, strOut, strError) { 
  //some code...
  })
  </code></pre>
  
  <p>But it works while user installed VS Code correctly only. If this folder was copied from other machine (it means nothing of VS Code in Registry), this function will fail.</p>
  
  <p>On the other hand, it couldn't work at all on Linux or OS X.</p>
  
  <p>I wonder if there are APIs which can be helpful(I found nothing), or other ways can get that path.</p>