Unable to Install Visual Studio Code Extensions
<p><strong>I raised this as an issue on the <a href="https://github.com/Microsoft/vscode/issues/7529#issuecomment-225229352" rel="noreferrer">VSCode github</a></strong></p>

<hr>

<p>I just installed <code>Visual Studio Code</code> to try it out, but I ran into a problem almost immediately when trying to install any extension (following <a href="https://code.visualstudio.com/Docs/editor/extension-gallery" rel="noreferrer">this</a>).</p>

<p>After pressing <code>ctrl + p</code> or <code>F1</code> and then typing <code>Extension</code> and selecting <code>Install</code>, the program appears to search for a while. However, after a few seconds to a minute I see this error: </p>

<p><strong>Error</strong> <code>getaddrinfo ENOTFOUND marketplace.visualstudio.com marketplace.visualstudio.com:443</code></p>

<p><a href="https://i.stack.imgur.com/IjzVT.png" rel="noreferrer"><img src="https://i.stack.imgur.com/IjzVT.png" alt="enter image description here"></a></p>

<p>And if I click out of the window before this message appears: </p>

<p><strong>Error</strong> <code>socket hang up</code></p>

<p><a href="https://i.stack.imgur.com/FG7uZ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/FG7uZ.png" alt="enter image description here"></a></p>

<p>Has anyone else seen the same error and managed to overcome?</p>

<hr>

<p>As mentioned in the comments, this seems to be discussed <a href="https://github.com/microsoft/vscode/issues/69" rel="noreferrer">here</a>. However, I can't apply any of the suggested fixes: </p>

<ul>
<li><p>Changing <code>.host</code> to <code>.hostname</code> in the file <code>src/vs/workbench/node/proxy.ts</code> : I can't find this file on my system.</p></li>
<li><p>Changing the same (<code>.host</code> to <code>.hostname</code>) in the file <code>C:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\electron-main\sharedProcessMain.js</code> : I can't find the folder <code>electron-main</code> or the file <code>sharedProcessMain.js</code> on my machine.</p></li>
<li><p>Changing <code>SSLStrict</code> to <code>true</code> </p></li>
</ul>