提交 92085e6d 编写于 作者: J Johannes Rieken

allow to warn about missing service dependencies, #5653

上级 6079e9e0
......@@ -127,6 +127,13 @@ export class InstantiationService implements IInstantiationService {
}
}
// // check for missing args
// for (let i = 0; i < serviceArgs.length; i++) {
// if (!serviceArgs[i]) {
// console.warn(`${desc.ctor.name} MISSES service dependency ${serviceDependencies[i].id}`, new Error().stack);
// }
// }
// now create the instance
const argArray = [desc.ctor];
argArray.push(...staticArgs);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册