Commit 5064a654 authored by aniket-engg's avatar aniket-engg Committed by Aniket

fix for reopening same file in two tabs in editor

parent c17cdb2f
......@@ -68,7 +68,8 @@ class TestTabLogic {
cb(e.message)
}
for (var file in files) {
if (/.(_test.sol)$/.exec(file)) tests.push(provider.type + '/' + file)
const filepath = provider && provider.type ? provider.type + '/' + file : file
if (/.(_test.sol)$/.exec(file)) tests.push(filepath)
}
cb(null, tests, this.currentPath)
}
......
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