fix local plugin

pull/4791/head
filip mertens 5 months ago
parent 4ad97eed80
commit f874259ceb
  1. 2
      apps/remix-ide-e2e/src/tests/plugin_api.ts
  2. 10
      apps/vyper/src/app/utils/remix-client.tsx

@ -11,7 +11,7 @@ const localPluginData: Profile & LocationProfile & ExternalProfile = {
name: 'localPlugin',
displayName: 'Local Plugin',
canActivate: ['dgitApi', 'flattener', 'solidityUnitTesting', 'udapp', 'hardhat-provider'],
url: 'http://localhost:2020',
url: 'http://localhost:9999',
location: 'sidePanel'
}

@ -83,13 +83,19 @@ export class RemixClient extends PluginClient<any, CustomRemixApi> {
try {
// @ts-ignore
this.call('notification', 'toast', 'cloning Snekmate Vyper repository...')
const timestamp = new Date().getTime()
await this.call(
'dgitApi',
'clone',
{url: 'https://github.com/pcaversaccio/snekmate', token: null, branch: 'main', workspaceName: 'snekmate'},
{url: 'https://github.com/pcaversaccio/snekmate', token: null, branch: 'main', singleBranch: true, workspaceName: 'snekmate' + timestamp},
)
await this.call('dgitApi', 'checkout', {
ref: 'v0.0.5',
force: true,
refresh: true
})
this.call(
// @ts-ignore

Loading…
Cancel
Save