Skip to content

Commit

Permalink
fix UI nuiances
Browse files Browse the repository at this point in the history
  • Loading branch information
rjnrohit committed Dec 3, 2023
1 parent 16a7d7c commit 885aa0b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plugin/src/hooks/useRemixClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ const createExampleWorkspace = async (client: typeof remixClient): Promise<void>
`hello_world/${filePath}/${file.fileName}`,
fileContent
)
} else if (file != null) {
await client.fileManager.writeFile(
`hello_world/${filePath}/${file.fileName}`,
fileContent
)
}
}
} catch (e) {
Expand Down Expand Up @@ -187,6 +192,9 @@ const useRemixClient = (): {
}
)

remixClient.on('fileManager', 'currentFileChanged', (_: any) => {
getAndSetTomlPaths(remixClient, currWorkspacePath, setTomlPaths).catch(e => { console.error(e) })
})
remixClient.on('fileManager', 'fileAdded', (_: any) => {
getAndSetTomlPaths(remixClient, currWorkspacePath, setTomlPaths).catch(e => { console.error(e) })
})
Expand Down

0 comments on commit 885aa0b

Please sign in to comment.