fix for reopening same file in two tabs in editor

pull/5370/head
aniket-engg 3 years ago committed by Aniket
parent 7f45bc3f4f
commit 99307c8a1c
  1. 3
      apps/remix-ide/src/app/tabs/testTab/testTab.js

@ -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)
}

Loading…
Cancel
Save