Commit c77be8e6 authored by yann300's avatar yann300

only compile sol file

parent 15aec1f3
...@@ -693,8 +693,11 @@ function run () { ...@@ -693,8 +693,11 @@ 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) {
if (/.(.sol)$/.exec(currentFile)) {
// only compile *.sol file.
var target = currentFile var target = currentFile
var sources = {} var sources = {}
var provider = fileManager.fileProviderOf(currentFile) var provider = fileManager.fileProviderOf(currentFile)
...@@ -712,6 +715,7 @@ function run () { ...@@ -712,6 +715,7 @@ function run () {
} }
} }
} }
}
var previousInput = '' var previousInput = ''
var saveTimeout = null var saveTimeout = null
...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment