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
c77be8e6
Commit
c77be8e6
authored
Aug 17, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
only compile sol file
parent
15aec1f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
app.js
src/app.js
+18
-18
No files found.
src/app.js
View file @
c77be8e6
...
@@ -693,22 +693,26 @@ function run () {
...
@@ -693,22 +693,26 @@ function run () {
if
(
transactionDebugger
.
isActive
)
return
if
(
transactionDebugger
.
isActive
)
return
fileManager
.
saveCurrentFile
()
fileManager
.
saveCurrentFile
()
editor
.
clearAnnotations
()
var
currentFile
=
config
.
get
(
'currentFile'
)
var
currentFile
=
config
.
get
(
'currentFile'
)
if
(
currentFile
)
{
if
(
currentFile
)
{
var
target
=
currentFile
if
(
/.
(
.sol
)
$/
.
exec
(
currentFile
))
{
var
sources
=
{}
// only compile *.sol file.
var
provider
=
fileManager
.
fileProviderOf
(
currentFile
)
var
target
=
currentFile
if
(
provider
)
{
var
sources
=
{}
provider
.
get
(
target
,
(
error
,
content
)
=>
{
var
provider
=
fileManager
.
fileProviderOf
(
currentFile
)
if
(
error
)
{
if
(
provider
)
{
console
.
log
(
error
)
provider
.
get
(
target
,
(
error
,
content
)
=>
{
}
else
{
if
(
error
)
{
sources
[
target
]
=
{
content
}
console
.
log
(
error
)
compiler
.
compile
(
sources
,
target
)
}
else
{
}
sources
[
target
]
=
{
content
}
})
compiler
.
compile
(
sources
,
target
)
}
else
{
}
console
.
log
(
'cannot compile '
+
currentFile
+
'. Does not belong to any explorer'
)
})
}
else
{
console
.
log
(
'cannot compile '
+
currentFile
+
'. Does not belong to any explorer'
)
}
}
}
}
}
}
}
...
@@ -764,10 +768,6 @@ function run () {
...
@@ -764,10 +768,6 @@ function run () {
}
}
})
})
compiler
.
event
.
register
(
'compilationStarted'
,
this
,
function
()
{
editor
.
clearAnnotations
()
})
function
startdebugging
(
txHash
)
{
function
startdebugging
(
txHash
)
{
self
.
event
.
trigger
(
'debuggingRequested'
,
[])
self
.
event
.
trigger
(
'debuggingRequested'
,
[])
transactionDebugger
.
debug
(
txHash
)
transactionDebugger
.
debug
(
txHash
)
...
...
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