fix local plugin

pull/4791/head
filip mertens 6 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', name: 'localPlugin',
displayName: 'Local Plugin', displayName: 'Local Plugin',
canActivate: ['dgitApi', 'flattener', 'solidityUnitTesting', 'udapp', 'hardhat-provider'], canActivate: ['dgitApi', 'flattener', 'solidityUnitTesting', 'udapp', 'hardhat-provider'],
url: 'http://localhost:2020', url: 'http://localhost:9999',
location: 'sidePanel' location: 'sidePanel'
} }

@ -83,13 +83,19 @@ export class RemixClient extends PluginClient<any, CustomRemixApi> {
try { try {
// @ts-ignore // @ts-ignore
this.call('notification', 'toast', 'cloning Snekmate Vyper repository...') this.call('notification', 'toast', 'cloning Snekmate Vyper repository...')
const timestamp = new Date().getTime()
await this.call( await this.call(
'dgitApi', 'dgitApi',
'clone', '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( this.call(
// @ts-ignore // @ts-ignore

Loading…
Cancel
Save