<p dir="auto">Currently the file watcher cannot work properly on network file systems, or file systems that doesn't support the underlying change notification mechanism that node's <code class="notranslate">fs.watch</code> relies on. This could lead to the language service crashing (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="129789966" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/6726" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/6726/hovercard" href="https://github.com/microsoft/TypeScript/issues/6726">#6726</a>).</p>
<p dir="auto">The alternative solution is to consider third party file watcher libraries. As suggested by Daniel (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="138285656" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/7376" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/7376/hovercard?comment_id=193072296&amp;comment_type=issue_comment" href="https://github.com/microsoft/TypeScript/issues/7376#issuecomment-193072296">#7376 (comment)</a>), <a href="https://facebook.github.io/watchman/" rel="nofollow">Watchman</a> or similar product can be used for the purpose. It may worth some research.</p>
<p dir="auto"><em>From @rajeevkumarsharma on January 1, 2016 15:7</em></p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
  &quot;compilerOptions&quot;: {
    &quot;target&quot;: &quot;es5&quot;,
    &quot;module&quot;: &quot;commonjs&quot;,
    &quot;noEmitOnError&quot;: false,
    &quot;rootDir&quot;: &quot;.&quot;,
    &quot;emitDecoratorMetadata&quot;: true,
    &quot;experimentalDecorators&quot;: true,
    &quot;sourceMap&quot;: false,
    &quot;sourceRoot&quot;: &quot;&quot;,
    &quot;inlineSourceMap&quot;: false,
    &quot;inlineSources&quot;: false
  },
  &quot;files&quot;: [
    &quot;app/app.ts&quot;
  ]
}"><pre class="notranslate">{
  <span class="pl-ent">"compilerOptions"</span>: {
    <span class="pl-ent">"target"</span>: <span class="pl-s"><span class="pl-pds">"</span>es5<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"module"</span>: <span class="pl-s"><span class="pl-pds">"</span>commonjs<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"noEmitOnError"</span>: <span class="pl-c1">false</span>,
    <span class="pl-ent">"rootDir"</span>: <span class="pl-s"><span class="pl-pds">"</span>.<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"emitDecoratorMetadata"</span>: <span class="pl-c1">true</span>,
    <span class="pl-ent">"experimentalDecorators"</span>: <span class="pl-c1">true</span>,
    <span class="pl-ent">"sourceMap"</span>: <span class="pl-c1">false</span>,
    <span class="pl-ent">"sourceRoot"</span>: <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>,
    <span class="pl-ent">"inlineSourceMap"</span>: <span class="pl-c1">false</span>,
    <span class="pl-ent">"inlineSources"</span>: <span class="pl-c1">false</span>
  },
  <span class="pl-ent">"files"</span>: [
    <span class="pl-s"><span class="pl-pds">"</span>app/app.ts<span class="pl-pds">"</span></span>
  ]
}</pre></div>
<p dir="auto">It still show error on decorator class</p>
<p dir="auto"><em>Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="124547510" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/1730" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/1730/hovercard" href="https://github.com/microsoft/vscode/issues/1730">microsoft/vscode#1730</a></em></p>