Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
577943ea
Commit
577943ea
authored
May 31, 2021
by
aniket-engg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check if hardhat is active before deactivating
parent
4532a3b8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
remixd-handle.js
apps/remix-ide/src/app/files/remixd-handle.js
+1
-1
remixAppManager.js
apps/remix-ide/src/remixAppManager.js
+0
-2
No files found.
apps/remix-ide/src/app/files/remixd-handle.js
View file @
577943ea
...
@@ -40,7 +40,7 @@ export class RemixdHandle extends WebsocketPlugin {
...
@@ -40,7 +40,7 @@ export class RemixdHandle extends WebsocketPlugin {
deactivate
()
{
deactivate
()
{
if
(
super
.
socket
)
super
.
deactivate
()
if
(
super
.
socket
)
super
.
deactivate
()
// this.appManager.deactivatePlugin('git') // plugin call doesn't work.. see issue https://github.com/ethereum/remix-plugin/issues/342
// this.appManager.deactivatePlugin('git') // plugin call doesn't work.. see issue https://github.com/ethereum/remix-plugin/issues/342
this
.
appManager
.
deactivatePlugin
(
'hardhat'
)
if
(
this
.
appManager
.
actives
.
includes
(
'hardhat'
))
this
.
appManager
.
deactivatePlugin
(
'hardhat'
)
this
.
locahostProvider
.
close
((
error
)
=>
{
this
.
locahostProvider
.
close
((
error
)
=>
{
if
(
error
)
console
.
log
(
error
)
if
(
error
)
console
.
log
(
error
)
})
})
...
...
apps/remix-ide/src/remixAppManager.js
View file @
577943ea
...
@@ -53,8 +53,6 @@ export class RemixAppManager extends PluginManager {
...
@@ -53,8 +53,6 @@ export class RemixAppManager extends PluginManager {
}
}
async
deactivatePlugin
(
name
)
{
async
deactivatePlugin
(
name
)
{
const
isActive
=
await
this
.
isActive
(
name
)
if
(
!
isActive
)
return
const
[
to
,
from
]
=
[
const
[
to
,
from
]
=
[
await
this
.
getProfile
(
name
),
await
this
.
getProfile
(
name
),
await
this
.
getProfile
(
this
.
requestFrom
)
await
this
.
getProfile
(
this
.
requestFrom
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment