Skip to content

Commit

Permalink
Merge pull request #232 from NethermindEth/multi_file
Browse files Browse the repository at this point in the history
add multifile support
  • Loading branch information
rjnrohit authored Feb 15, 2024
2 parents cf1f073 + ad9f1bc commit 72bb3a8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion plugin/src/hooks/useRemixClient.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
import { PluginClient } from '@remixproject/plugin'
import { createClient } from '@remixproject/plugin-webview'

const remixClient = createClient(new PluginClient())
export class RemixClient extends PluginClient {
constructor () {
super()
this.methods = ['loadFolderFromUrl']
}

loadFolderFromUrl (url: string, filePath: string | undefined): void {
console.log('loadFolderFromUrl', url, filePath)
}
}
const remixClient = createClient(new RemixClient())

const useRemixClient = (): {
remixClient: typeof remixClient
Expand Down

0 comments on commit 72bb3a8

Please sign in to comment.