<p dir="auto">Hi</p>
<p dir="auto">When I open a git-controlled folder, and possibly change some settings, then Code creates a .vscode directory directly inside that folder, and stores files such as settings.json or launch.json in it.</p>
<p dir="auto">That folder either has to be checked in or .ignored, which is OK on repos I control, but not OK on forked repos I want to contribute to for instance, which needs to stay clean.</p>
<p dir="auto">Can't this data be stored in some Code own data folder?</p>
<p dir="auto">Cheers</p>
<p dir="auto"><strong>Environment:</strong></p>
<ul dir="auto">
<li>VS Code Version 0.10.9</li>
<li>Mac OS 10.10.5</li>
<li>Node.js v4.3.1</li>
</ul>
<p dir="auto"><strong>Steps to Reproduce:</strong><br>
Create a new directory named cluster-test<br>
Create a new file cluster-test\app.js with sample code from <a href="https://nodejs.org/dist/latest-v4.x/docs/api/cluster.html#cluster_cluster" rel="nofollow">https://nodejs.org/dist/latest-v4.x/docs/api/cluster.html#cluster_cluster</a> as follows:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const cluster = require('cluster');
const http = require('http');
const numCPUs = require('os').cpus().length;

if (cluster.isMaster) {
  // Fork workers.
  for (var i = 0; i &lt; numCPUs; i++) {
    cluster.fork();
  }

  cluster.on('exit', (worker, code, signal) =&gt; {
    console.log(`worker ${worker.process.pid} died`);
  });
} else {
  // Workers can share any TCP connection
  // In this case it is an HTTP server
  http.createServer((req, res) =&gt; {
    res.writeHead(200);
    res.end('hello world\n');
  }).listen(8000);
}"><pre class="notranslate"><code class="notranslate">const cluster = require('cluster');
const http = require('http');
const numCPUs = require('os').cpus().length;

if (cluster.isMaster) {
  // Fork workers.
  for (var i = 0; i &lt; numCPUs; i++) {
    cluster.fork();
  }

  cluster.on('exit', (worker, code, signal) =&gt; {
    console.log(`worker ${worker.process.pid} died`);
  });
} else {
  // Workers can share any TCP connection
  // In this case it is an HTTP server
  http.createServer((req, res) =&gt; {
    res.writeHead(200);
    res.end('hello world\n');
  }).listen(8000);
}
</code></pre></div>
<p dir="auto">Open cluster-test in VS Code<br>
Switch to the Debug view and click the Start icon, or press F5<br>
Select "Node.js" as the debug environment<br>
Click Start again</p>
<p dir="auto">Point you browser to <a href="http://localhost:8000/" rel="nofollow">http://localhost:8000/</a><br>
Observe that no one is listening</p>
<p dir="auto">Exit VS code, open a command prompt and invoke:<br>
node cluster-test\app.js</p>
<p dir="auto">Point you browser to <a href="http://localhost:8000/" rel="nofollow">http://localhost:8000/</a><br>
Observe that a "hello world" response is received</p>
<p dir="auto"><strong>Conclusion:</strong><br>
Basic node cluster example fails in VS Code</p>