File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,10 @@ export const workspace = {
5555 const { readFile } = await import ( "fs/promises" ) ;
5656 return await readFile ( uri . fsPath ) ;
5757 } ,
58- writeFile : async ( uri : { fsPath : string } , content : Uint8Array ) : Promise < void > => {
58+ writeFile : async (
59+ uri : { fsPath : string } ,
60+ content : Uint8Array
61+ ) : Promise < void > => {
5962 const { writeFile } = await import ( "fs/promises" ) ;
6063 await writeFile ( uri . fsPath , content ) ;
6164 } ,
@@ -72,13 +75,12 @@ export const workspace = {
7275 const { mkdir } = await import ( "fs/promises" ) ;
7376 await mkdir ( uri . fsPath , { recursive : true } ) ;
7477 } ,
75- readDirectory : async ( uri : { fsPath : string } ) : Promise < Array < [ string , number ] > > => {
78+ readDirectory : async ( uri : {
79+ fsPath : string ;
80+ } ) : Promise < Array < [ string , number ] > > => {
7681 const { readdir } = await import ( "fs/promises" ) ;
7782 const entries = await readdir ( uri . fsPath , { withFileTypes : true } ) ;
78- return entries . map ( ( entry ) => [
79- entry . name ,
80- entry . isDirectory ( ) ? 2 : 1 ,
81- ] ) ;
83+ return entries . map ( ( entry ) => [ entry . name , entry . isDirectory ( ) ? 2 : 1 ] ) ;
8284 } ,
8385 } ,
8486} ;
You can’t perform that action at this time.
0 commit comments