File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -93,12 +93,14 @@ class _EditorPageState extends State<EditorPage> {
9393
9494 void initializeTreeView () async {
9595 List <Document > docs = List .empty (growable: true );
96+
97+ // Add folders from the solution file
9698 for (var key in project.folders.keys) {
9799 var dir = project.slnFolderPath +
98100 Platform .pathSeparator +
99101 (project.folders[key])! ;
100102 List <Document > children = readFolder (Directory (dir));
101- //await
103+
102104 Document node = Document (
103105 name: key,
104106 dateModified: DateTime .now (),
@@ -109,6 +111,18 @@ class _EditorPageState extends State<EditorPage> {
109111
110112 docs.add (node);
111113 }
114+
115+ // Add the solution file itself
116+ Document node = Document (
117+ name: project.name,
118+ dateModified: DateTime .now (),
119+ isFile: true ,
120+ childData: [],
121+ path: project.slnPath,
122+ );
123+
124+ docs.add (node);
125+
112126 setState (() {
113127 documentList = docs;
114128 });
You can’t perform that action at this time.
0 commit comments