title: Why does VSCode have to open a new tab to show errors properly?
body: <p>I am using vscode for remote C/C++ and CUDA development. I have two remote servers. On one server, the error squiggles would pop up automatically when an error occurs in the code script, even if I do not press Ctrl+S to save it. Also, when I do save it and all errors are shown in the &quot;PROBLEMS&quot; terminal, if I double-click an error message, vscode would direct me to the line in the ORIGINAL tab that displays the code script, just as I expect it to do.</p>
  <p>However, on the other server, the error squiggles do not pop up, even when I save the code script. It would take a long time for the error messages to be displayed, and when I double-click one of them, instead of directing me to a line in th original tab, vscode would open a new tab of the same code script and correctly highlight all errors there, but still, nothing happens in the original tab.</p>
  <p>To be more specific, see the three pictures down below.
  <a href="https://i.stack.imgur.com/pzbuU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pzbuU.png" alt="enter image description here" /></a>
  Pic 1: When there is an error and the file is not manually saved, no indication of error exists, even when the error squiggles are enabled.</p>
  <p><a href="https://i.stack.imgur.com/LxowA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LxowA.png" alt="enter image description here" /></a>
  Pic 2: When I save the script using Ctrl+S, the error message shows up after a VERY long time, but  still no squiggles in the original script.</p>
  <p><a href="https://i.stack.imgur.com/kByob.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kByob.png" alt="enter image description here" /></a>
  Pic 3: When I double-click on the error message, a new tab pops up and correctly displays the errors, but nothing happens to the original one in the meantime.</p>
  <p>I suspect the reason why the error message pops up very slowly in Pic 2 can be attributed to bad network connection, but I don't understand why vscode has to open a new tab to show the errors. Any idea on how I can fix this? Thanks!</p>