Format workspace entries browse filter
Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
1 parent
4c853e3714
commit
5a994cd866
1 file changed
+1
-4
@@ -206,10 +206,7 @@ export const make = Effect.gen(function* () {
|
||||
const lowerPrefix = prefix.toLowerCase();
|
||||
const entries: Array<{ readonly name: string; readonly fullPath: string }> = [];
|
||||
for (const name of entryNames) {
|
||||
if (
|
||||
name.toLowerCase().startsWith(lowerPrefix) &&
|
||||
(showHidden || !name.startsWith("."))
|
||||
) {
|
||||
if (name.toLowerCase().startsWith(lowerPrefix) && (showHidden || !name.startsWith("."))) {
|
||||
const fullPath = path.join(parentPath, name);
|
||||
const info = yield* fileSystem.stat(fullPath).pipe(Effect.option);
|
||||
if (Option.isNone(info) || info.value.type !== "Directory") {
|
||||
|
||||
Reference in new issue
Block a user