only compile sol file

pull/3094/head
yann300 7 years ago
parent 13880cd05e
commit d150b0ccbd
  1. 8
      src/app.js

@ -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 () {
} }
} }
} }
}
var previousInput = '' var previousInput = ''
var saveTimeout = null var saveTimeout = null
@ -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)

Loading…
Cancel
Save