title: VSCode / failed to save
body: <p>Often when working on typescript files in VS code I'll get a &quot;failed to save&quot; error and a blank window will open up. It looks like VSC is trying to save to <code>/Untitled</code> eg the root of the file system.</p>
  <p>This is not related to permissions errors inside my project. It's something to do with when there's an error in the .ts file it causes this spurious error to occur.</p>
  <p>It happens a few times an hour and is driving me nuts. Has nobody else seen this? Googling just finds me basic <code>chown $user</code> type comments...</p>
  <p>Failed to save 'Untitled-1, Untitled-1': Unable to write file '/Untitled-1' (Unknown (FileSystemError): Error: EROFS: read-only file system, open '/Untitled-1')</p>
  <p><a href="https://i.stack.imgur.com/hvgDl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hvgDl.png" alt="failed to save" /></a></p>