When resolving references in our projects that point to files that are not present, Sphinx tries to create a resource and when it fails unloads the resource. The removal jobs causing blinking of the mouse pointer.
This could be avoided by checking the existence of the file or even better checking if the file content type can be determined.
I would propose to add a check to the ScopingResourceSetImpl before calling the getResource(), something like this:
if((resource == null || !resource.isLoaded()) && loadOnDemand) {
try {
// If no content type, do not try to create a resource and then unload it in the catch
if(EcoreResourceUtil.getContentTypeId(uri) == null) {
return null;
}
resource = getResource(uri.trimFragment(), true);
} catch(Exception ex) {
...