We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 902e521 commit f9d691aCopy full SHA for f9d691a
src/explorers/qiitaItems.ts
@@ -71,17 +71,15 @@ class QiitaItemsProvider implements TreeDataProvider<NodeTypes> {
71
await this.refreshItems();
72
}
73
74
- const children = [];
75
-
76
- for (const item of this.items) {
+ const children: NodeTypes[] = this.items.map((item) => {
77
const command = {
78
command: 'qiita.openItem',
79
title: localize('commands.openItem.title', '開く'),
80
arguments: [ item ],
81
};
82
83
- children.push(new QiitaItem(item, TreeItemCollapsibleState.None, command));
84
- }
+ return new QiitaItem(item, TreeItemCollapsibleState.None, command);
+ });
85
86
// アイテムが最後まで読み込まれていない場合、「さらに読み込む...」を挿入する
87
if (!this.done) {
0 commit comments