提交 3b23b8fe 编写于 作者: S Sandeep Somavarapu 提交者: GitHub

Merge pull request #35358 from qcz/patch-1

Clarify parameters and add missing 'id' to the error message in viewRegistry.ts
......@@ -96,7 +96,7 @@ export const ViewsRegistry: IViewsRegistry = new class {
this._views.set(viewDescriptor.location, views);
}
if (views.some(v => v.id === viewDescriptor.id)) {
throw new Error(localize('duplicateId', "A view with {0} is already registered in the location ${1}", viewDescriptor.id, viewDescriptor.location.id));
throw new Error(localize('duplicateId', "A view with id `{0}` is already registered in the location `{1}`", viewDescriptor.id, viewDescriptor.location.id));
}
views.push(viewDescriptor);
}
......@@ -145,4 +145,4 @@ export const ViewsRegistry: IViewsRegistry = new class {
this._views.forEach(views => registered = registered || views.some(view => view.id === id));
return registered;
}
};
\ No newline at end of file
};
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册