title: Visual Studio Code can't resolve angular's tsconfig paths
body: <p>I'm trying to import some services using barrels and tsconfigs <code>paths</code> options but I can't get angular and vscode to get along.</p>
  
  <p>If it works for one it doesn't for the other and viceversa...</p>
  
  <p>My situation seems to be pretty simple:</p>
  
  <ul>
  <li>in <code>src/app/services</code> I have a service which is exported in a index.ts</li>
  <li>my <code>src/tsconfig.app.json</code> is just this:</li>
  </ul>
  
  <hr>
  
  <pre><code>{
    "extends": "../tsconfig.json",
    "compilerOptions": {
      "outDir": "../out-tsc/app",
      "types": [],
      "baseUrl": ".",
      "paths": {
        "services": ["app/services"]
      }
    },
    "exclude": [
      "test.ts",
      "**/*.spec.ts"
    ],
  }
  </code></pre>
  
  <p>and <strong>my angular app compiles with no issues</strong>, but vscode keep giving me errors every time I try to import my service from <code>'services'</code> giving me <code>[ts] Cannot find module 'services'.</code></p>
  
  <p>why?</p>
  
  <p>I'm using typescript 3.1.6 and in vscode settings I have <code>"typescript.tsdk": "C:/Users/myuser/AppData/Roaming/npm/node_modules/typescript/lib"</code> (I also tried to leave the default setting, no changes)</p>
  
  <hr>
  
  <p><strong>edit:</strong></p>
  
  <p>if I specify <code>paths</code> in <code>./tsconfig.json</code> starting from <code>src</code>, vscode is happy but angular is not.</p>
  
  <p>if I specify <code>paths</code> in both <code>tsconfig.json</code> and <code>src/tsconfig.app.json</code>, both vscode and angular are happy, but it seems a too stupid workaround to me...</p>