提交 56d068e1 编写于 作者: J Joao Moreno

update tree problems sample

上级 c0aae671
......@@ -3,7 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import 'vs/css!./tree';
import 'vs/css!./media/tree';
import { Iterator, ISequence } from 'vs/base/common/iterator';
import { AbstractTree, ITreeOptions } from 'vs/base/browser/ui/tree/abstractTree';
import { ISpliceable } from 'vs/base/common/sequence';
......
......@@ -51,7 +51,7 @@
const renderer = {
templateId: 'template',
renderTemplate(container) { return container; },
renderElement(element, index, container) { container.textContent = element; },
renderElement(element, index, container) { container.textContent = element.element; },
disposeElement() { },
disposeTemplate() { }
};
......@@ -159,10 +159,10 @@
const { tree, treeFilter } = createIndexTree();
const files = [];
for (let i = 0; i < 10000; i++) {
for (let i = 0; i < 100000; i++) {
const errors = [];
for (let j = 1; j <= (i % 5) + 1; j++) {
for (let j = 1; j <= 3; j++) {
errors.push({ element: `error #${j}` });
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册