File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1440,20 +1440,20 @@ async function attachAgentList(
14401440}
14411441
14421442/** Subscribe an explorer socket to host fs.watch notifications for its cwd. */
1443- function attachFsEvents (
1443+ async function attachFsEvents (
14441444 ctx : Context ,
14451445 hub : FsWatchHub ,
14461446 ws : WebSocket ,
14471447 req : SidebarHttpRequest ,
1448- ) : void {
1448+ ) : Promise < void > {
14491449 try {
14501450 const url = new URL ( req . url ?? '/' , 'http://dsh.internal' )
14511451 const sessionId = url . searchParams . get ( 'sessionId' )
14521452 if ( sessionId === null ) {
14531453 ws . close ( 1008 , 'sessionId is required' )
14541454 return
14551455 }
1456- const cwd = sessionCwdOf ( ctx , sessionId , url . searchParams . get ( 'cwd' ) ?? undefined )
1456+ const cwd = await sessionCwdOf ( ctx , sessionId , url . searchParams . get ( 'cwd' ) ?? undefined )
14571457 ws . on ( 'message' , ( data ) => {
14581458 try {
14591459 const msg = JSON . parse ( String ( data ) ) as { type ?: unknown ; path ?: unknown }
You can’t perform that action at this time.
0 commit comments