File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ export function bufferInfo(
9191 for await ( const item of items ) {
9292 itemsArray . push ( item ) ;
9393 }
94-
94+
9595 // Get all buffer info at once for efficiency
9696 const allBufinfo = await fn . getbufinfo ( denops ) ;
9797 const bufInfoMap = new Map (
@@ -187,7 +187,9 @@ export function bufferInfo(
187187 ) ;
188188
189189 // Return only non-null items
190- const filtered = results . filter ( ( item ) : item is IdItem < Detail > => item !== null ) ;
190+ const filtered = results . filter ( ( item ) : item is IdItem < Detail > =>
191+ item !== null
192+ ) ;
191193 yield * filtered ;
192194 } ) ;
193195}
Original file line number Diff line number Diff line change @@ -92,15 +92,16 @@ export function fileInfo(
9292 for await ( const item of items ) {
9393 itemsArray . push ( item ) ;
9494 }
95-
95+
9696 // Process items in parallel and filter
9797 const results = await Promise . all (
9898 itemsArray . map ( async ( item ) => {
9999 const { path } = item . detail ;
100100
101101 // Check if hidden file should be excluded
102102 if (
103- excludeHidden && path . split ( "/" ) . some ( ( part : string ) => part . startsWith ( "." ) )
103+ excludeHidden &&
104+ path . split ( "/" ) . some ( ( part : string ) => part . startsWith ( "." ) )
104105 ) {
105106 return null ;
106107 }
@@ -180,7 +181,9 @@ export function fileInfo(
180181 ) ;
181182
182183 // Return only non-null items
183- const filtered = results . filter ( ( item ) : item is IdItem < Detail > => item !== null ) ;
184+ const filtered = results . filter ( ( item ) : item is IdItem < Detail > =>
185+ item !== null
186+ ) ;
184187 yield * filtered ;
185188 } ) ;
186189}
You can’t perform that action at this time.
0 commit comments