Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/org/rascalmpl/uri/URIResolverRegistry.java
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,11 @@ private ISourceLocationOutput getOutputResolver(String scheme) {
return result;
}
}
if (externalRegistry != null && externalRegistry.supportsOutput(scheme)) {
// only return an external registry if the input is also going to an external resolver
// as input resolvers are quite common, but output less, and we don't want all of them
// to always go via the external registries (just to receive an exception)
var inputResolver = getInputResolver(scheme);
if (externalRegistry != null && externalRegistry.supportsOutput(scheme) && inputResolver == externalRegistry) {
return externalRegistry;
}
}
Expand Down
Loading