Skip to content

Commit 4abb404

Browse files
committed
fix: root directories not being displayed when user clears a pre filled input
1 parent d80ea2b commit 4abb404

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/LiveDevelopment/LivePreviewEdit.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,6 +1186,8 @@ define(function (require, exports, module) {
11861186
}
11871187
if (savedFolder) {
11881188
_updateFolderSuggestions(savedFolder, folderList, rootFolders, stringMatcher, $suggestions, $input);
1189+
// load root directories in background so they're ready when user clears input
1190+
_scanRootDirectoriesOnly(projectRoot, rootFolders);
11891191
}
11901192
});
11911193

0 commit comments

Comments
 (0)