Skip to content

Commit

Permalink
Don't display attributes
Browse files Browse the repository at this point in the history
See #605.
  • Loading branch information
DanTup committed Jun 6, 2018
1 parent 0ba6e6a commit 4f1dc4b
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/views/flutter_outline_view.ts
Expand Up @@ -89,8 +89,6 @@ export class FlutterOutlineProvider implements vs.TreeDataProvider<vs.TreeItem>,
children.push(new FlutterWidgetItem(c, codeActionFixes, this.activeEditor));
}
}
if (outline.attributes && outline.attributes.length)
outline.attributes.map((a) => new FlutterWidgetAttributeItem(a)).forEach((a) => children.push(a));
}

return children;
Expand All @@ -117,7 +115,7 @@ export class FlutterWidgetItem extends vs.TreeItem {
) {
super(
FlutterWidgetItem.getLabel(outline),
(outline.children && outline.children.length) || (outline.attributes && outline.attributes.length)
(outline.children && outline.children.length)
? vs.TreeItemCollapsibleState.Collapsed
: vs.TreeItemCollapsibleState.None,
);
Expand Down Expand Up @@ -172,9 +170,3 @@ export class FlutterWidgetItem extends vs.TreeItem {
return label.trim();
}
}

class FlutterWidgetAttributeItem extends vs.TreeItem {
constructor(public readonly attribute: as.FlutterOutlineAttribute) {
super(attribute.name + ": " + attribute.label);
}
}

0 comments on commit 4f1dc4b

Please sign in to comment.