Commit d87d5d2f authored by yann300's avatar yann300

don't compile if no sol extension

parent 40493bec
...@@ -35,7 +35,8 @@ class CompileTab { ...@@ -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 = {}
......
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