Commit 057f13b5 authored by LianaHus's avatar LianaHus Committed by Liana Husikyan

check also uppercases

parent bde41fa8
...@@ -45,8 +45,8 @@ class CompilerContainer { ...@@ -45,8 +45,8 @@ class CompilerContainer {
isSolFileSelected (currentFile = '') { isSolFileSelected (currentFile = '') {
if (!currentFile) currentFile = this.config.get('currentFile') if (!currentFile) currentFile = this.config.get('currentFile')
if (!currentFile) return false if (!currentFile) return false
return currentFile.substr(currentFile.length - 3, currentFile.length) === 'sol' || const extention = currentFile.substr(currentFile.length - 3, currentFile.length)
currentFile.substr(currentFile.length - 3, currentFile.length) === 'yul' return extention.toLowerCase() === 'sol' || extention.toLowerCase() === 'yul'
} }
deactivate () { deactivate () {
......
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