|
|
@ -35,7 +35,8 @@ class CompileTab { |
|
|
|
this.fileManager.saveCurrentFile() |
|
|
|
this.fileManager.saveCurrentFile() |
|
|
|
this.editor.clearAnnotations() |
|
|
|
this.editor.clearAnnotations() |
|
|
|
var currentFile = this.config.get('currentFile') |
|
|
|
var currentFile = this.config.get('currentFile') |
|
|
|
if (!currentFile && !/.(.sol)$/.exec(currentFile)) return |
|
|
|
if (!currentFile) return |
|
|
|
|
|
|
|
if (!/\.sol$/.exec(currentFile)) return |
|
|
|
// only compile *.sol file.
|
|
|
|
// only compile *.sol file.
|
|
|
|
var target = currentFile |
|
|
|
var target = currentFile |
|
|
|
var sources = {} |
|
|
|
var sources = {} |
|
|
|