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
48c01aee
Commit
48c01aee
authored
Aug 17, 2021
by
bunsenstraat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test flattener
parent
d9a91617
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
plugin-manager-component.js
.../remix-ide/src/app/components/plugin-manager-component.js
+12
-12
No files found.
apps/remix-ide/src/app/components/plugin-manager-component.js
View file @
48c01aee
...
@@ -105,25 +105,25 @@ class PluginManagerComponent extends ViewPlugin {
...
@@ -105,25 +105,25 @@ class PluginManagerComponent extends ViewPlugin {
async
registerFlattener
(
event
)
{
async
registerFlattener
(
event
)
{
if
(
!
this
.
appManager
.
isActive
(
'solidity'
))
{
await
this
.
appManager
.
activatePlugin
(
'solidity'
)
}
if
(
!
this
.
appManager
.
isActive
(
'solidity'
))
{
await
this
.
appManager
.
activatePlugin
(
'solidity'
)
}
const
compiledSuccessfully
=
await
this
.
call
(
'solidity'
,
'compileFile'
,
event
)
const
compiledSuccessfully
=
await
this
.
call
(
'solidity'
,
'compileFile'
,
event
)
console
.
log
(
compiledSuccessfully
)
const
reportCompileIssue
=
async
()
=>
{
const
reportCompileIssue
=
async
()
=>
{
this
.
call
(
'fileManager'
,
'open'
,
event
.
path
[
0
])
this
.
call
(
'fileManager'
,
'open'
,
event
.
path
[
0
])
addToolTip
(
'Cannot flatten the file. Please make sure it is compiling successfully.'
)
addToolTip
(
'Cannot flatten the file. Please make sure it is compiling successfully.'
)
await
this
.
call
(
'menuicons'
,
'select'
,
'solidity'
)
await
this
.
call
(
'menuicons'
,
'select'
,
'solidity'
)
}
}
setTimeout
(
async
()
=>
{
if
(
compiledSuccessfully
)
{
if
(
compiledSuccessfully
)
{
const
res
=
await
this
.
call
(
'solidity'
,
'getCompilationResult'
)
const
res
=
await
this
.
call
(
'solidity'
,
'getCompilationResult'
)
if
(
!
res
)
{
if
(
!
res
)
{
reportCompileIssue
()
}
else
{
await
this
.
call
(
'menuicons'
,
'select'
,
'flattener'
)
const
path
=
await
this
.
call
(
'flattener'
,
'flattenAndSave'
,
res
)
await
this
.
call
(
'fileManager'
,
'open'
,
path
)
}
}
else
{
reportCompileIssue
()
reportCompileIssue
()
}
else
{
await
this
.
call
(
'menuicons'
,
'select'
,
'f3'
)
console
.
log
(
res
)
await
this
.
call
(
'f3'
,
'flattenAndSave'
,
res
)
}
}
},
1000
)
}
else
{
reportCompileIssue
()
}
}
}
async
registerOptimismCompiler
(
event
)
{
async
registerOptimismCompiler
(
event
)
{
...
...
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