title: VSCode - Why tsconfig.json must be in the root directory to get autocomplete?
body: <p>According to the Typescript documentation</p>
  
  <blockquote>
    <p>The presence of a tsconfig.json file in a directory indicates that the
    directory is the root of a TypeScript project. The tsconfig.json file
    specifies the root files and the compiler options required to compile
    the project.</p>
  </blockquote>
  
  <p>In my understanding, this means that I can have some application structure like below </p>
  
  <pre><code>+-- app
  |  +-- src
  |    +-- controllers 
  |      +-- AppCtrl.ts 
  |    +-- application.ts
  |    +-- tsconfig.json
  |  +-- assets
  </code></pre>
  
  <p>I noticed that the only way to get autocomplete for new <code>.ts</code> files is to create another <code>tsconfig.json</code> at my root directory, like</p>
  
  <pre><code>+-- app
  +-- tsconfig.json    
  |  +-- src
  |    +-- controllers 
  |      +-- AppCtrl.ts 
  |    +-- application.ts
  </code></pre>
  
  <p>In the first structure I can get autocomplete if I <strong>reload the IDE after creating new ts files</strong>.</p>
  
  <p>Is there some configuration needed in vscode to get the first structure working or this is wrong?</p>
  
  <p><strong>UPDATE</strong>: I'm not getting autocomplete with the file in the root directory opened too. Restarting the IDE seems to fix it, but's not an option for every new file created...</p>
  
  <p><a href="https://i.stack.imgur.com/fC3Z6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fC3Z6.png" alt="vscode autocomplete error"></a></p>