@@ -78,7 +78,10 @@ export const { use: useFile, provider: FileProvider } = createSimpleContext({
7878 const tree = createFileTreeStore ( {
7979 scope,
8080 normalizeDir : path . normalizeDir ,
81- list : ( dir ) => sdk ( ) . client . file . list ( { path : dir } ) . then ( ( x ) => x . data ?? [ ] ) ,
81+ list : ( dir ) =>
82+ sdk ( )
83+ . client . file . list ( { path : dir } )
84+ . then ( ( x ) => x . data ?? [ ] ) ,
8285 onError : ( message ) => {
8386 showToast ( {
8487 variant : "error" ,
@@ -176,8 +179,8 @@ export const { use: useFile, provider: FileProvider } = createSimpleContext({
176179
177180 setLoading ( file )
178181
179- const promise = sdk ( ) . client . file
180- . read ( { path : file } )
182+ const promise = sdk ( )
183+ . client . file . read ( { path : file } )
181184 . then ( ( x ) => {
182185 if ( scope ( ) !== directory ) return
183186 const content = x . data
@@ -200,10 +203,12 @@ export const { use: useFile, provider: FileProvider } = createSimpleContext({
200203 }
201204
202205 const search = ( query : string , dirs : "true" | "false" ) =>
203- sdk ( ) . client . find . files ( { query, dirs } ) . then (
204- ( x ) => ( x . data ?? [ ] ) . map ( path . normalize ) ,
205- ( ) => [ ] ,
206- )
206+ sdk ( )
207+ . client . find . files ( { query, dirs } )
208+ . then (
209+ ( x ) => ( x . data ?? [ ] ) . map ( path . normalize ) ,
210+ ( ) => [ ] ,
211+ )
207212
208213 const stop = sdk ( ) . event . listen ( ( e ) => {
209214 invalidateFromWatcher ( e . details , {
0 commit comments