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
77b0ccd8
Commit
77b0ccd8
authored
Sep 29, 2021
by
lianahus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
catch an error of no current
parent
6fb15c79
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
compile-tab.js
apps/remix-ide/src/app/tabs/compile-tab.js
+4
-0
test-tab.js
apps/remix-ide/src/app/tabs/test-tab.js
+5
-5
No files found.
apps/remix-ide/src/app/tabs/compile-tab.js
View file @
77b0ccd8
...
@@ -124,7 +124,11 @@ class CompileTab extends CompilerApiMixin(ViewPlugin) { // implements ICompilerA
...
@@ -124,7 +124,11 @@ class CompileTab extends CompilerApiMixin(ViewPlugin) { // implements ICompilerA
path
:
[],
path
:
[],
pattern
:
[]
pattern
:
[]
})
})
try
{
this
.
currentFile
=
await
this
.
call
(
'fileManager'
,
'file'
)
this
.
currentFile
=
await
this
.
call
(
'fileManager'
,
'file'
)
}
catch
(
e
)
{
throw
new
Error
(
e
)
}
}
}
getCompilerParameters
()
{
getCompilerParameters
()
{
...
...
apps/remix-ide/src/app/tabs/test-tab.js
View file @
77b0ccd8
...
@@ -74,10 +74,10 @@ module.exports = class TestTab extends ViewPlugin {
...
@@ -74,10 +74,10 @@ module.exports = class TestTab extends ViewPlugin {
}
}
}
}
onActivation
()
{
async
onActivation
()
{
const
isSolidityActive
=
this
.
call
(
'manager'
,
'isActive'
,
'solidity'
)
const
isSolidityActive
=
await
this
.
call
(
'manager'
,
'isActive'
,
'solidity'
)
if
(
!
isSolidityActive
)
{
if
(
!
isSolidityActive
)
{
this
.
call
(
'manager'
,
'activatePlugin'
,
'solidity'
)
await
this
.
call
(
'manager'
,
'activatePlugin'
,
'solidity'
)
}
}
}
}
...
@@ -625,7 +625,7 @@ module.exports = class TestTab extends ViewPlugin {
...
@@ -625,7 +625,7 @@ module.exports = class TestTab extends ViewPlugin {
return
this
.
generateFileActionElement
return
this
.
generateFileActionElement
}
}
updateRunAction
(
currentFile
)
{
async
updateRunAction
(
currentFile
)
{
const
el
=
yo
`
const
el
=
yo
`
<button id="runTestsTabRunAction" title="Run tests" data-id="testTabRunTestsTabRunAction" class="w-50 btn btn-primary" onclick="
${()
=>
this
.
runTests
()}
">
<button id="runTestsTabRunAction" title="Run tests" data-id="testTabRunTestsTabRunAction" class="w-50 btn btn-primary" onclick="
${()
=>
this
.
runTests
()}
">
<span class="fas fa-play ml-2"></span>
<span class="fas fa-play ml-2"></span>
...
@@ -639,7 +639,7 @@ module.exports = class TestTab extends ViewPlugin {
...
@@ -639,7 +639,7 @@ module.exports = class TestTab extends ViewPlugin {
el
.
setAttribute
(
'title'
,
'No solidity file selected'
)
el
.
setAttribute
(
'title'
,
'No solidity file selected'
)
}
else
{
}
else
{
el
.
setAttribute
(
'title'
,
'The "Solidity Plugin" should be activated'
)
el
.
setAttribute
(
'title'
,
'The "Solidity Plugin" should be activated'
)
this
.
call
(
'manager'
,
'activatePlugin'
,
'solidity'
)
await
this
.
call
(
'manager'
,
'activatePlugin'
,
'solidity'
)
}
}
}
}
if
(
!
this
.
runActionElement
)
{
if
(
!
this
.
runActionElement
)
{
...
...
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