title: Hide linking errors when syntax errors are present
body: <p>Syntax errors in a model might cause false linking errors because the referenced element cannot be parsed. These false linking errors distract the user and makes it very hard to diagnose the root cause. What we want is to hide XtextLinkingDiagnostic when XtextSyntaxDiagnostic is present in the model, once the syntax errors are fixed the linking errors should be displayed as usual.</p>
  
  <p>I didn’t find any standard way to do it in the Xtext documentation. Thus, I went ahead and implemented a custom IAcceptor in <a href="https://github.com/eclipse/xtext/blob/master/plugins/org.eclipse.xtext/src/org/eclipse/xtext/validation/ResourceValidatorImpl.java" rel="nofollow">ResourceValidatorImpl</a>#createAcceptor() which removes linking errors from the list if it contains syntax errors. It works well, but I wonder if there is a standard/better way to do it than overriding ResourceValidator.</p>
  
  <p>Thanks.</p>