in lib/object-context.ts [292:305]
private selectProvider(uri: Uri, input: any): ObjectProvider {
if (uri != null) {
for (let scope: ScopedObjectContext = this; scope != null; scope = scope._parent) {
let provider = scope._objectProvider;
if (provider != null && provider.supports(uri.protocol)) {
return provider;
}
}
}
throw new Error("Cannot create object, URI protocol '"
+ uri.protocol
+ "' is not supported. Input="
+ JSON.stringify(input));
}