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
ae867fde
Commit
ae867fde
authored
Sep 22, 2021
by
aniket-engg
Committed by
Aniket
Sep 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
error disappearing fixed
parent
5a648971
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
test-tab.js
apps/remix-ide/src/app/tabs/test-tab.js
+10
-0
No files found.
apps/remix-ide/src/app/tabs/test-tab.js
View file @
ae867fde
...
...
@@ -44,6 +44,7 @@ module.exports = class TestTab extends ViewPlugin {
this
.
offsetToLineColumnConverter
=
offsetToLineColumnConverter
this
.
allFilesInvolved
=
[]
this
.
isDebugging
=
false
this
.
currentErrors
=
[]
appManager
.
event
.
on
(
'activate'
,
(
name
)
=>
{
if
(
name
===
'solidity'
)
this
.
updateRunAction
()
...
...
@@ -117,6 +118,14 @@ module.exports = class TestTab extends ViewPlugin {
}
async
updateForNewCurrent
(
file
)
{
// Ensure that when someone clicks on compilation error and that opens a new file
// Test result, which is compilation error in this case, is not cleared
if
(
this
.
currentErrors
)
{
if
(
Array
.
isArray
(
this
.
currentErrors
)
&&
this
.
currentErrors
.
length
>
0
)
{
const
errFiles
=
this
.
currentErrors
.
map
(
err
=>
{
if
(
err
.
sourceLocation
&&
err
.
sourceLocation
.
file
)
return
err
.
sourceLocation
.
file
})
if
(
errFiles
.
includes
(
file
))
return
}
else
if
(
this
.
currentErrors
.
sourceLocation
&&
this
.
currentErrors
.
sourceLocation
.
file
&&
this
.
currentErrors
.
sourceLocation
.
file
===
file
)
return
}
// if current file is changed while debugging and one of the files imported in test file are opened
// do not clear the test results in SUT plugin
if
(
this
.
isDebugging
&&
this
.
allFilesInvolved
.
includes
(
file
))
return
...
...
@@ -377,6 +386,7 @@ module.exports = class TestTab extends ViewPlugin {
this
.
testsOutput
.
hidden
=
false
if
(
!
result
&&
(
_errors
&&
(
_errors
.
errors
||
(
Array
.
isArray
(
_errors
)
&&
(
_errors
[
0
].
message
||
_errors
[
0
].
formattedMessage
)))))
{
this
.
testCallback
({
type
:
'contract'
,
filename
})
this
.
currentErrors
=
_errors
.
errors
this
.
setHeader
(
false
)
}
if
(
_errors
&&
_errors
.
errors
)
{
...
...
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